How can i find readonly textfields in a form..i treied this..but it is not working..
$('input[readonly="readonly"]').each(function()
{
$(this).attr('tabindex', '-1');
}
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.
It works for me, both:
and
see this fiddle
Edit:
The problem with your code is that it is missing an ending
). See this working fiddle:Regarding your comment question about setting
readonlydynamically then searching for the input:See it working here