Run function on every table entry
I got a table that has an entry that looks like this:
<tr>
<td><input type="checkbox" name="ids[]"/><a style="cursor: pointer;"
onclick="addtopath('parameter1', 'parameter2')" class="btn_addpath">
Add</a></td>
</tr>
As you can see every table entry countains the function
"addtopath('parameter1', 'paramter2');"
The parameters are generated via php; so each item is different. Also,
every entry has a checkbox. This is where the trouble occurs.
I want to create a function that runs the "addtopath" function for every
table item, that is checked, as if the user clicked the "Add" button.
Hope it makes sense.
No comments:
Post a Comment