javascript - change input text value and add new link -


on page, i'm want change "sold out" on button "coming soon", , have link new page.

how this?

html

<input type="submit" value="sold out" id="add" class="btn add-to-cart disabled" disabled="disabled" style="opacity: 0.5;"> 

some jquery

$(e.target).find(selectors.submit_add_to_cart).attr('disabled', true).addclass('disabled'); 

well, change value coming soon.

<input type="submit" value="coming soon!" id="add" class="btn add-to-cart disabled" disabled="disabled" style="opacity: 0.5;"> 

next in form change action.

<form action="new page here"> 

did mean want jquery..?


Comments