I have the following: $(‘#registration_form input[type=text], #registration_form input[type=password]’) And I feel it can be
Share
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.
What you have isn’t bad, if you really wanted “cleaner” syntax you could try this:
Slightly cleaner, but not necessarily faster. It has to find #registration_form just once now instead of twice, but you’re adding a second method call in there. Also since you’re already matching on an exact id, you’re likely going to save very little processing time in my example above.