What I am trying to accomplish is I have a data table, and there’s a button for each dr. I would like to set-it-up to where when the button in each dr is clicked, it passes it’s onclick function, and variable, to another button.
The button I would like to take the function out of looks like this:
<button onclick="buyPhone('17729198426','(772) 919-8426');" type="button">Acquire</button>
And the target button looks like this:
<button id="saveNumber" type="button" class ="viewcust_tbl_new_button" onclick="">Save</button>
You can add to your function buyPhone something like that: