menios Posted December 6, 2007 Share Posted December 6, 2007 Hi I want my cart to have to buttons for adding and removing.I currently have one form and the submit button is ADD I also use an <a> for my remove.I would like to change it ot a button but how can i add 2 actions to the form so i can change my <a> tag to a <button> tag? Quote Link to comment Share on other sites More sharing options...
menios Posted December 6, 2007 Author Share Posted December 6, 2007 Did it with 2 forms and problem solved . But is there a way to do this with one form? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted December 7, 2007 Share Posted December 7, 2007 just use two buttons and assign them onclick actions; drop the form altogether. <input type="button" value="Add" onclick="action1()"> <input type="button" value="Remove" onclick="action2()"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.