jQuery select option value not selected in jQuery Steps wizard -
perhaps title explained issues i'm facing now. value of selected select option, i'll server side page extract database. , ajax rest make selected select option based on callback value. @ time when using jquery steps wizard, won't work. value text input example, display nicely. because of loaded first, wizard or ajax. wish advise on this.
here's code clarify situation:-
script
$.ajax({ cache: false, url: 'keyword_lib.php', data:{mode:'readkeyword',keyword:'<?php echo $_get['keyword'];?>'}, type:'post', datatype:'json', success: function(val){ $('#keyword_camp').val(val[0].keyword_camp); } });
html
<select name="keyword_camp" id="keyword_camp"> <option value="0">no camp</option> <option value="20">openinfinity</option> <option value="21">test</option> </select>
previously, use same syntax bootstrap & it's working fine. when started use jquery steps wizard, select option won't display selected value, show first option in select.
Comments
Post a Comment