I made a very simple button click event handler, I would like to have element be appended when button clicked, you can check my code
http://jsfiddle.net/j36ye/17/
$("#search_btn").click(function(){
if(($('#other').length) == 0) {
$("#wrapper").append("I am here
");
}
return false
});
Or
var other_appended = false;
$("#search_btn").click(function(){
if(other_appended == false) {
$("#wrapper").append("I am here
");
other_appended = true;
}
return false;
});