jQuery - Return Values Matching a pattern to an Array

RosstheBoss

New Member
My form has several \[code\]<p>\[/code\] elements which are added dynamically. This is how one would look:\[code\]<p id="numbox-1" class="numbox">1</p>\[/code\]I need to set up a function so that when a button is clicked I get the id (the id's will be labeled numbox-1, numbox-2, etc) and the value of the p element for all of them on the page. I need to pass the values to a php script that will process them, it would be nice if I could get the data as an array so I can use a for loop in php. I have been using JSON to pass data, but Im not sure if that's the best way to go on this, please advise, thanks-
 
Back
Top