I have a button like this:
<input type="button" name="btn" id="btn" value="Proceed"/>
After all processes and get the expected result, I need to apply some changes on this button.
- Change the value of this button.
- Add something to direct the current page to another one.
I know I can do the first goal using the code below:
$('#btn').attr('value','newValue');
But for the second one, I need something like our previous codes in JavaScript as below:
onclick="window.location.href='newPage.htm'";
Help me please.
something like, if I understand you correctly:
This will set a new value and bind a click handler.