darkdrops Posted March 25, 2013 Share Posted March 25, 2013 hi need help with a code problemi whant to change button to an imagebut when i click on it, it not take me to the page its supose to.anyone knows the problem?this is the code that i working with!td><input type=\"image\" src=\"images/paypal.png\" onclick=\"buyupgrade($membership[id],document.form.upgrade$membership[id].value)\" value=\"Buy Now!\"></td>this is the working orignal code<input type=\"button\" onclick=\"buyupgrade($membership[id],document.form.upgrade$membership[id].value)\" value=\"Buy Now!\"> Link to comment https://forums.phpfreaks.com/topic/276142-help-with-code-problem/ Share on other sites More sharing options...
Mahngiel Posted March 25, 2013 Share Posted March 25, 2013 $(document).on('click', 'stuff to prevent', function(e){ e.preventDefault(); } http://api.jquery.com/event.preventDefault/ Link to comment https://forums.phpfreaks.com/topic/276142-help-with-code-problem/#findComment-1420997 Share on other sites More sharing options...
darkdrops Posted March 25, 2013 Author Share Posted March 25, 2013 and how shoud i insert that code in mine????? Link to comment https://forums.phpfreaks.com/topic/276142-help-with-code-problem/#findComment-1420999 Share on other sites More sharing options...
Mahngiel Posted March 25, 2013 Share Posted March 25, 2013 and how shoud i insert that code in mine?????give it to a carrier pigeon Link to comment https://forums.phpfreaks.com/topic/276142-help-with-code-problem/#findComment-1421000 Share on other sites More sharing options...
darkdrops Posted March 25, 2013 Author Share Posted March 25, 2013 mm i think i wait for someone that can help me. Link to comment https://forums.phpfreaks.com/topic/276142-help-with-code-problem/#findComment-1421002 Share on other sites More sharing options...
darkdrops Posted March 25, 2013 Author Share Posted March 25, 2013 instead of input type <img src=\"images/paypal.png\" thanks Link to comment https://forums.phpfreaks.com/topic/276142-help-with-code-problem/#findComment-1421013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.