var allRapidSpells = $$('input[value^=RSW]');
Can anyone tell me what that does?
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.
I would venture to guess that you’re using MooTools, a JavaScript framework. The
$$()function is used to select an element (or multiple elements) in the DOM.More specifically, the
$$('input[value^=RSW]');syntax is selecting allinputelements whosevalueattribute starts withRSW.Other attribute selectors include:
=: is equal to*=: contains^=: starts-with$=: ends-with!=: is not equal to~=: contained in a space separated list|=: contained in a ‘-‘ separated listEdit: It looks as though Prototype, another JavaScript framework, uses the same syntax.