php - ajax success call appears in firebug, but not on screen -


i using ajax output.the response appears on firebug panel. not on browser.

here form using.

<label for="test">     party name     <input type  id='test' name="test" class=".test" />    </label> 

ajax success call

success: function (html)  {      $("#test").append(html);  }   <select  name="plid" id="plid">     <option value="" selected="selected">--select pack name--</option>     <option value='a z pharmacy'>a z pharmacy</option>     <option value='a.a.homoeo hall'>a.a.homoeo hall</option>     <option value='a.a.homoeo hall (robra)'>a.a.homoeo hall (robra)</option> </select> 

use .val() set data in input

$("#test").val(html); 

edit:

if want append html after text input, can -

$(html).insertafter('#test'); 

demo ---> http://jsfiddle.net/8uswp/1/


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -