Link to home
Start Free TrialLog in
Avatar of Stoke
Stoke

asked on

Prototype - replace submit button with text in a table.

I have a table of results. One row has a submit button. Ive written code to execute a JSON call and I can easily change disable the button and change the text:

function lockButton(buttonClicked) {  // Lock button so it cannot be pressed again.
      $(buttonClicked).disable();
      $(buttonClicked).value='Processing...'; }

But, ideally Id like to replace the button with text. The button is in a cell:
$$('table#resultTable td#action_1)

Unfortunately I cannot work out the correct syntax to replace the button with text. How do I correct my problem?

Thank you for any time and help.
ASKER CERTIFIED SOLUTION
Avatar of Pratima
Pratima
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stoke
Stoke

ASKER

Brilliant! Now why didn't I think of that? That's great ---- thank you.