Here is my code: http://jsfiddle.net/9Vvpj/4/
Please help me figure out why this working fine in EVERYTHING other than IE7!
It looks like my variable:
var quantity = quantity_input.val();
is undefined
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t use the same ID for different elements. Even in browsers that support it, it’s not how the DOM is supposed to work.
If you use this code to find your input you won’t even need the IDs:
It’s also a good idea to explicitly specify that you’re working with a number:
Note that this method works when using developer tools to switch to IE7:
http://jsfiddle.net/9Vvpj/5/