E-junkie Ecommerce Forums » E-junkie Discussions
Tag Cloud for this topic: | |
| |
|
Doors member Posts: 6 |
I have set the 'contuinue shopping' button with my own background image (using jquery). The check boxes on the shopping cart have an onchange event which changes the background-color and removes my image. I have tried to unbind the event with <code> jQuery("input#remove_array[0]").unbind(); </code> I'm not sure if this is the correct usage as I relatively new to jquery but it seems like it would do the trick. I have also tried a number of alteration on this such as <code> jQuery("#remove_array[0]").unbind(); </code> <code> jQuery("input").unbind("change"); </code> The list goes on. I tried a load of different statements - for a couple of fun filled hours on the firebug console;-) # POSTED ON: October 21, 2008 @ 01:57 GMT -7 |
|
Doors member Posts: 6 |
It is this code on the check box that is causing the issue: <code> onchange="document.getElementById('btnUpdtCart').style.background=' #FFFF99';" </code> All of the above refers to code put in to the checkout button (between the script tags) - the 'EJEJC_shown' function. # POSTED ON: October 21, 2008 @ 20:45 GMT -7 |
|
Doors member Posts: 6 |
This has been resolved. The following code will remove the event: <code> jQuery("input:checkbox").attr("onchange" , ""); </code> The "input:checkbox" targets all of the check boxes and "attr" manipulates the onchange attribute. # POSTED ON: October 30, 2008 @ 08:13 GMT -7 |
|
AmyT member Posts: 8 |
Thanks for posting this! I was having a similar issue and solved it by kind of hacking the code, so it's good to see a different and much cleaner way to solve this issue! Best, Amy T http://www.zippycart.com - Find and Compare Shopping Carts Online # POSTED ON: June 8, 2009 @ 16:34 GMT -7 |
You must be logged in to make a post. Please click here to login. | |






