I am using jQuery, I want to check existence of an element in my page. I have done following code, but its not working?
if ($("#btext" + i) != null){
//alert($("#btext" + i).text());
$("#btext" + i).text("Branch " + i);
}
Please tell me what will be the right code?
Thanks