I have a draft field in my db for the table offers. Now I would like to have two buttons, "save as draft" and "publish offer" for the offer form. If the user clicks the save as draft button I want the field to be 1, if the user clicks publish offer I want the field to be 0.
unfortunately i dont understand anything, i am really very very bad with jquery or javascript :)
if you could write out some code for me, id be very thankful @spyworld
@kickthemooon You're missing the value attribute on the button. It's mostly irrelevant if you're using a button or input[type=submit], but both won't submit any data if they don't have a name and value.