I have another button on the page called “Edit” when I click the “Edit” button. I need to change the value of the Add button for SAVE ... using jquery ..
thank
$('#edit_btn_id').click(function(){ $('#badd').val('SAVE'); }
You can use .val()to set the value of any input (including a button), for example:
.val()
$("#badd").val("Save");
Try it here or just JavaScript:
document.getElementById("badd").value = "Save";
Source: https://habr.com/ru/post/1757935/More articles:Padrino, compass and read-only file system heroku - ruby | fooobar.comProgramming the navigation bar in Word 2010 - ms-wordtcpdf font ligatures (английский)? - phpWhat is the maximum length of varchar (doctrine: string) in Doctrine 2 or SQL? - sqledmx fills in mdf? - asp.net-mvcpython dict remove duplicate values by key value? - pythonManaging C # Winforms GUI with IronPython - pythonNSDate dateFromString not recommended? - iphoneApplying CSS via jQuery to a div called by Javascript? - jqueryProgrammatically launching tab function keys in a Windows VB.Net application - windowsAll Articles