default select selected text on jquerymobile

Posted: February 10, 2012 in web

you need to change the span text to Pond.

<script>
$('#parkName').prev('span').children('.ui-btn-text').html('Pond');
</script>

<div data-theme="c" class="ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-c">
<span class="ui-btn-inner ui-btn-corner-all" aria-hidden="true">
         <span class="ui-btn-text">Preivous Value</span>
         <span class="ui-icon ui-icon-arrow-d ui-icon-shadow"></span>
</span>
<select name="parkName" id="parkName">
	<option value="">please select</option>
	<option value="2">Ridge</option>
	<option value="3" selected>Pond</option>
</select>
</div>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s