On Sun, Nov 23, 2014 at 8:37 AM, Pierre Caserta <li...@ruby-forum.com> wrote:
> My partial code:
> view/clubs_registration/clubs/_dropzone_pictures.html.erb
>
> <%= hidden_field_tag :club_id, name: :club_id, value: club_id %>

snip...

>
> What I really want to do is retrieve the value of club_id from my
> jquery:
>
>
> console.log($("#club_id").val());  //->  {:name=>:club_id,
> :value=>11500}
>
>
> I just want the value 11500. How should I do that please?

What is the id on the hidden field?  If it's "club_id" then your
javascript should work.

-- 
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/CAC5Qo_0aiAFbo68GYxiiyfU7gMHMyVF1wd7ZgHedgAMW8-j5dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to