jquery - Is it wrong to do this in HTML? -
this question has answer here:
i know id's meant unique, i've got quick question.
can use same id name on different elements? example, have:
input#idname
a#idname
...etc? same id, different element long call them element tag in jquery:
$("a#idname")
$("input#idname")
etc?
thanks.
id's meant unique , id should exist once on webpage. element use id irrelevant in case.
Comments
Post a Comment