jquery - Is it wrong to do this in HTML? -


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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -