refiking Posted June 8, 2010 Share Posted June 8, 2010 So, here's the issue. I have an add to cart link at the top of the page that submits a form toward the end of the page. It works in FF, but not IE. What am I doing wrong here? Here is the link: <a href="Javascript:document.addtocart.submit();" style="text-decoration:none;"><button style="background-color:#3355CA; color:#FFFFFF; font-weight:bold; font-size:12px; padding-bottom:2px;">Add To Cart</button></a> Quote Link to comment Share on other sites More sharing options...
ignace Posted June 8, 2010 Share Posted June 8, 2010 LOL It should be: <button type="submit" style="background-color:#3355CA; color:#FFFFFF; font-weight:bold; font-size:12px; padding-bottom:2px;">Add To Cart</button> Quote Link to comment Share on other sites More sharing options...
refiking Posted June 8, 2010 Author Share Posted June 8, 2010 That won't work Mr. LOL, there are about 25 forms between the add to cart link and the addtocart form itself Quote Link to comment Share on other sites More sharing options...
ignace Posted June 8, 2010 Share Posted June 8, 2010 That won't work Mr. LOL, there are about 25 forms between the add to cart link and the addtocart form itself <sarcasm>Oh sorry, I didn't notice that in your very detailed description of your problem</sarcasm> Try that: <button onclick="document.addtocart.submit()" style="background-color:#3355CA; color:#FFFFFF; font-weight:bold; font-size:12px; padding-bottom:2px;">Add To Cart</button> Quote Link to comment Share on other sites More sharing options...
refiking Posted June 8, 2010 Author Share Posted June 8, 2010 Got it working from another forum, but here is the answer if anyone else needs it: <button style="background-color:#3355CA; color:#FFFFFF; font-weight:bold; font-size:12px; padding-bottom:2px;" onclick="Javascript:document.addtocart.submit();">Add To Cart</button> 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.