How to get element id using alias attribute in Mootools
<input type="text" alias="school_name" value="" id="test_school" name="test_school">
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.
You can use the $$ function to return an element based on a css selector. You can use the css attribute selector syntax to retrieve elements based on an attribute.
This will return an array of elements.
You can then do els[0].id to retrieve the id of the first element (or loop through the elements as you see fit)