small medium large xlarge

08 May 2011, 05:15
Zhao Han (4 posts)

As the title said, the html code is:


<select id="set_locale" name="set_locale" onchange="this.form.submit()"><option value="en" selected="selected">English</option> <option value="cn">中文</option></select>
<input name="commit" type="submit" value="submit" />
<script type="text/javascript"> //<![CDATA[ $$('.locale input').each(Element.hide) //]]> </script>


I really don’t know how $$(‘.locale input’).each(Element.hide) works, so I have no idea how to fix it… I had tried Firfox and chrome but both didn’t hide the submit button…

I’d appreciate anyone could help…

22 Jul 2011, 18:31
Clint Shryock (6 posts)

@$$(’.locale input’).each(Element.hide)@ Will load html elements of class @locale@ and hide them if javascript is enabled. If it’s still showing, make sure you have the above @form_tag@ with the @:class => ‘locale’@ spelled correctly.

See here:

Viewing source of that page shows it more clearly

You must be logged in to comment