Accesing jquery var into html

Accesing jquery var into html

Hi.

I have something like this:

<script type="text/javascript">
$(document).ready(function() {
var button_text="Place Order";
});
</script>

and I want to show this text (it can be different depending on situation) in my jquery mobile button

<a href="#" data-role="button" data-mini="true" data-inline="true"  data-icon="check" data-theme="b">

<script>$(button_text).eval();</script>

</a>


is this possible?

Anybody knows how to do it? I tried several ways but no results.

Thanks