Why using this:
var parent = $('div.form.offer_mails');
var period = parent.find('input[type=checkbox,name=timeperiod]');
I get this (exception in my Mozilla Firefox Error Console):
Error: uncaught exception: Syntax error, unrecognized expression: [type=checkbox,name=timeperiod]
Isn't it possible to search an element with more than one attribute and it's value?
Please explain and solutionize my problem. :)
Yes, in this way:
var period = parent.find('input[type=checkbox][name=timeperiod]');
Note that this is also a valid CSS selector.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With