On Thu, May 15, 2008 at 1:19 PM, Byron Young <[EMAIL PROTECTED]> wrote:
> I was just using 'attr' as an example meaning 'any attribute'.  The
> one I actually ran into trouble with was 'show',

Show is also a bad choice. Any short, single word is probably a bad choice.

I use custom attributes quite frequently, but they are always multiple
words separated by an underscore or dash, also, to access the
attribute value I *always* use
$('my-element').getAttribute('whatever-attribute') as opposed to just
$('my-element).whatever-attribute (which wouldn't work anyway).

-justin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to