Form input field not showing, javascript/jquery -


$(document).ready(function() {   $.ajax({     type: "get",     url: "textman.php",     success: function(data) {       $('#textbaz').append(data);       $('#textbaz').append("<input id='textbox' type='text' placeholder='type man, on clock!'");     }   }) }) 

the above javascript code. first command(appending data textbaz) works , data printed. problem is, second line breaks. reason doesnt print out, checked chrome dev tools , isnt there @ all. confused , , every highly appreciated.

$('#textbaz').append("<input id='textbox' type='text' placeholder='type man, on clock!' />"); 

you need close input tag.


Comments