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.

update console


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -