Can we use relational operator in mootools selectors ? Say for example I have two check boxes with different names.How can I get them both in single selector query.
Share
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.
for mootools selector engine Slick, it’s just the same as in jquery:
document.getElements("div.foo, div.bar, div.bar a");or also known as
$$.$$("div.foo,div.bar"); // vs $("div.foo,div.bar"); in jqueryboth frameworks try to adhere to CSS 3 selectors and expand them with edge cases like reverse combinators etc
Notice $ in mootools is an alias for
document.id, which you can think of like adocument.getElementById, not at all like the jquery function wrapper, it returns a single element. if you want to pick an element by id it’sdocument.id("someid")and not$("#someid")or the much favoured mistake by jquery users coming into mootools of$$("#someid"). You can, though, use$$("#someid,#anotherid")to get a collection of elements by their ids.