I understand that using the same id multiple times in a page creates malformed html. When using a jquery selector only the first element with the id will be returned, but in
yes it is bad practice. An id should be a unique reference to that element. Use class instead.
id
class