Re: Observe field with jquery in Rails 3.1

Hans
Thu, 12 Jan 2012 10:43:53 -0000

Thanks for your advices

Your advices convinced me that the error was some minor typo or some
other detail
That was also true
The problem is
{ alert("Clicked"); })
when I changed that to
alert("Clicked");
and put everything with a ready function it worked
I am now trying more complex change functions that also seems to work

I have tried on and off and might use them

On 11 Jan, 20:56, Robert Walker
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> Robert Walker wrote in post #1040404:
>
> > $(function() {
> >   $(''#fieldset'').click(function() {
alert("Clicked"); });
> > });
>
> > If this works then you know you''re finding the right HTML
element and
> > correctly binding a "click." Once you''ve confirmed
this then try the
> > more complex bind syntax.
>
> If you''re using jQuery 1.7+ you might also want to consider using
the
> new .on()/.off() methods for binding events.
>
> http://api.jquery.com/on/
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.