tags:

views:

26

answers:

2

Hello friends..

<input type="button" id="badd" value="Add"/>

I have one more button on the page called Edit when I click on Edit button I need to Change the Add Button value to SAVE...using jquery..

thanks

+1  A: 

You can use .val() to set the value of any input (including a button), like this:

​$("#badd").val("Save");​​​​​​

Give it a try here, or just plain JavaScript:

document.getElementById("badd").value = "Save";
Nick Craver
+1  A: 
$('#edit_btn_id').click(function(){
    $('#badd').val('SAVE');
}
Claudio Redi