Andy11548 Posted July 27, 2011 Share Posted July 27, 2011 Hey, I'm trying to make a delete button for each post made to my site, how would I construct this to work? I'm holding a hidden input field with the value of the ID, how would I retrive all the ID's from the input field. EXAMPLE: <input type="hidden" class="news_id" value="8" /> <input type="hidden" class="news_id" value="4" /> <input type="hidden" class="news_id" value="2" /> How would I get all of the different ID's from the input fields, with the same class name? Thanks, Andy. Link to comment https://forums.phpfreaks.com/topic/242997-retrive-multiple-ids/ Share on other sites More sharing options...
freelance84 Posted July 28, 2011 Share Posted July 28, 2011 https://developer.mozilla.org/en/DOM/document.getElementsByClassName Link to comment https://forums.phpfreaks.com/topic/242997-retrive-multiple-ids/#findComment-1248570 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.