Tuesday, April 24, 2012

jquery output id display as [object object]

var str = prompt("What is your name?");
var str1=$(str).html('<b>'+str+'</b>');
alert(str1);


By above code I'm getting [object object] as output ,. please help





No comments:

Post a Comment