 <p>If you want to refresh the select menu with <code>data-role</code> slider you have to use:</p> <pre><code>$("#txtgender2").val(data.data.gender).slider("refresh"); </code></pre> <p>instead of:</p> <pre><code>$("#txtgender2").val(data.data.gender).selectmenu("refresh"); </code></pre>