I have this jQuery line:
jQuery("input[name=secondname10]").removeAttr("disabled").val("");
I’d like to know how can I make the name dynamic instead of entering it in the code as I did with name=secondname10.
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.
Create a function that has a name parameter.
then you can do this
if you want to do this on every input element you can do this
if you want to do this on every input type text you can do this
and so on…
As you can see you have to apply the right filter to your selector.
hope this helps