<input type ="button" name="buttonsel" id="buttonse1"/>
$("#buttonse1") VS $("[name=buttonse1]")
What are the advantages in using name and id in jquery
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.
EDIT
check full details over here : http://mindprod.com/jgloss/htmlforms.html#IDVSNAME
Id can able to indentify element unique.
valid html contains unique id for each element.
But you can give same name to multiple items that might not able find element unequally.