Walter Davis wrote in post #1180603: >>> It's giving me Nan when I wrap the parseInt method around the counter. >> >> Check that your spelling of the attribute is correct, note the typo in the > example. Also, if you want to be extra-careful (just had to deal with > this > yesterday) you can go all belt-and-suspenders on it: >> >> parseInt( 0 + counter.data('maximum-length') ) > > Sorry, left out one more bit here: > > parseInt( 0 + counter.data('maximum-length'), 10 ) > > Walter
Is the last argument '10' the maximum amount allowed placeholder number? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f4e22551d46e5ec1fc910476ba5d632f%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.