Welcome Guest, Not a member yet? Register   Sign In
get size of product from tag li without checkbox when submit add to cart
#3

[eluser]PhilTem[/eluser]
No, you can't do that easily if you don't have a checkbox. I guess, even amazon uses checkboxes that are hidden using JavaScript and show a li-item that is linked to a checkbox.
Keep in mind that only form elements will be submitted when submitting a form, thus no li-items can be submitted as long as they don't have an invisible checkbox connected to them.

PS: I was rethinking my answer, and I guess you can do it with e.g. jQuery but it'll be a hassle since you need to append a post value to a form-submit. Which I've never done and haven't seen code that shows how to do it. But you always have to design your page for people that have JavaScript disabled. And those won't be able to use your page if you just have li-items!


Messages In This Thread
get size of product from tag li without checkbox when submit add to cart - by El Forum - 12-23-2012, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB