search for: listtrans

Displaying 1 result from an estimated 1 matches for "listtrans".

Did you mean: list_trans
2012 Feb 17
0
Passing a value to js.erb
...<%= hidden_field_tag "video-id", @video.id, { :id => "video-id" } %> then, I can retrieve it by var idval = $(''#video-id'').val(); It certainly gets the value. The problem is then I need to pass it to the following. I tried, $(''#listtrans'').html(''<%= escape_javascript(render :partial => "videos/script_list", :locals => { :scripts => Script.find_all_by_video_id( idval ) } ) %>''); //<= idval this does not work. $(''#listtrans'').html(''<%= escape_jav...