i am having a TextBox txt on a content page. when i try this
$(function(){
$("#txt").focus(function(){alert("abcd"); });
});
it doesn’t work. It’s working if i am using it on simple .aspx page with no master page.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
View the HTML source. I think the most likely problem is the renaming of the controls by prepending the content section’s id. You can change this with the ClientIDMode property: