Hi,everybody,
i have this code,what is the problem.button clcik nothing to display,
i want to button click display label and textbox.
$(document).ready(function(){
$("#planbar").click(function() {
var html="";
var i=0;
var display=" ";
/*var numitem = $(this).val; if(numitem>5) numitem=5;
alert(numitem);
for(i=1;i<=numitem;i++) {*/
html+="<div><b>Planbar</b> </div>" +
"<div class='field'>" +
"<span style='width:115px;float-left;text-align:right'>Where:</div>"
"<div>"
;
// }
$("planbars").html(html);
});
});
<input type="button" id="planbar" value="+ " />
<div id="planbars" style="float:left;width:150px;margin-left:20px;height:210px;overflow-y:scroll;border: 1px solid black;">
</div>
Thanks