Dart uses query('#selector')
if i wanted to get a reference to the result so i can do something with the selected item, what is the dart equivalent. I tried query(this) but
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.
The
Document.query(selector)function is not an equivalent ofjQuery(selector)but an equivalent ofDocument.querySelector(selector). Thus you cannot get the selector used and you have to keep the reference aside.If you want to use jQuery in Dart you can use it with the js package.