The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › css id and onClick › Re: css id and onClick
ID’s are only to be used once…which is where you are probably going wrong.
Try creating a class that will do the same thing and then add that using JS.