cancel
Showing results for 
Search instead for 
Did you mean: 

how to change the name of a button with JavaScript

Former Member
0 Kudos

hello, i have a button with this localization {##BTN_Insert1}...but i want that the value of the button changes to when the user click on a cell...i have tried like this: - document.getElementById('btn_Insert') = ;

regards

Mário

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Assign your translation value to a hidden form element on your page and reference that in your javascript

<input type="hidden" id="id_BTN_Change" name="name_BTN_Change"  value="{BTN_Change}" />

and

document.getElementById('btn_Insert').value = document.getElementById('id_BTN_Change').value;

or something similar

Regards,

Christian

Answers (0)