javascript - how to make a 2nd button to click only when first button is clicked -
i have 2 input type:
// first submit button: <input type="submit" value="save"/> // second button: <input type="button" value="go payment" id="payment" />
i want button id="payment"
function/click when submit
clicked when data saved . please provide suggestion. new jquery , javascript
you can use .prop()
this:
$('#submit').click(function() { $('#payment').prop('disabled',false); });
make sure you're putting disabled
attribute #payment
button.
<input type="button" value="go payment" id="payment" disabled />
Comments
Post a Comment