Choose a time of the day:morning, afternoon, evening. So if I want to pick Monday and Afternoon, it ends up just stopping at choosing tuesday, since it doesn't know that I want the "B" from the next set. Stack Overflow for Teams is a private, secure spot for you and Hello highlight.js! your coworkers to find and share information. The jQuery # selector refers to the ID, and not to the Name. rev 2020.9.24.37673, Stack Overflow works best with JavaScript enabled, Where developers & technologists share private knowledge with coworkers, Programming & related technical career opportunities, Recruit tech talent & build your employer brand, Reach developers & technologists worldwide. Yes, all the elements belong to the same form. Is there an “exists” function for jQuery? I have this code that I downloaded to create a fade in/fade out popup form. Name isn't the same as the id. Then it wouldn't be an id. Now use php to pass above string as selector in your js code like: If you use same buttonid for all button then there is no need to call all buttons..just simply use this code..It seems that you are using animation in this code....well use togglefade instead of reveal,
javascript multiple buttons with same id
por | Sep 24, 2020 | Sin categoría |