Reputation: 29
when I use this in jquery it works as should however when live it is not and it is the exact same code as I copied and pasted.
When live when i select yes for the radio button it asks me to select colour and shade as it should but then it submits when i click ok. If i select attendance1 yes and select the 2 drop down values it submits without error on attendance1 or attendance2
Upvotes: 0
Views: 126
Reputation: 2679
It's possible you're running jQuery in "noclobber" mode (where it avoids setting itself as the $
variable).
Try putting this around the whole above code snippet:
(function($) {
// ... code here
})(jQuery)
Upvotes: 1