31 Dec '12, 5pm

ruby on rails - get jquery to submit one of two forms - Stack Overflow #jQuery

i am trying to get jquery to submit one of two forms when a submit_tag is clicked. I am basing my conditions on the presence of text. so whichever form has text in then submit that one. My forms looks like this <div class="container margin50"> <div class="row"> <div class="span6 offset3 cf formBackground"> <h1>CoverArt Finder</h1> <h3>Search Movies</h3> <%= form_tag main_results_path, :method => "get", :id => 'submitMovie' %> <%= text_field_tag 'search', nil, :placeholder => 'Enter Film Name Here.....', :id => 'movieForm' %> <h1>OR<h1> <h3>Search Albums</h3> <%= form_tag album_album_results_path, :method => "get", :id => 'submitAlbum' %> <%= text_field_tag 'search', nil, :placeholder => 'Enter Artist Name here.....', :id => 'albumForm' %> <%= submit_tag "search", :id => 'submitForm' %> </div> </div> </div> HTML <div class="container margin50"> <div class="row"> <div class=...

Full article: http://stackoverflow.com/questions/14103759/get-jquery-to...

Tweets

ruby on rails - Use jquery to check which form ...

stackoverflow.com 31 Dec '12, 1pm

I have two forms that make a separate requests to different apis. What i am trying to achieve is to maybe have jquery chec...

fml the guys one also very nice.

modparade.com 30 Dec '12, 3pm

MY ACCOUNT ORDER STATUS SHOPPING BAG (0) New Collection Tops Bottoms Dresses Accessories Shoes Backorder Boutique Femme Bo...

#jQuery-Prototype Re-style Dropdown Select Menu...

freelancer.com 01 Jan '13, 1pm

Project Description: We are a startup company looking to add another developer to our team for regular bug-repair work. Th...

SQL Query Ruby On Rails: Hi I have two models t...

stackoverflow.com 01 Jan '13, 6pm

Hi I have two models team and fixture, the fixture model has two columns home_team_id and away_team which contain the fore...

Who's ready for Rails 4? #ruby #rails #apps #oh...

rubysource.com 01 Jan '13, 11pm

All these gems will help having a smooth transition. I’d recommend that, for a full Rails 4 experience, just use them in d...

mrbrown.com: The two Taylors

mrbrown.com: The two Taylors

mrbrown.com 06 Jan '13, 5am

Joy, 7: "Papa, is Twilight a bad movie?" Me: "…Yes. It teaches you to date old vampires." Joy, with a toothless grin: "I a...

Ruby on Rails Developer - Ruby on Rails, jQuery...

businessworkforce.com 07 Jan '13, 4am

Ruby on Rails Developer - Ruby on Rails, jQuery, MySQL Ruby on Rails Developer - Skills Required - Ruby on Rails, jQuery, ...

いわゆるwizard形式の良い例。session使ってる所を、hiddenがcacheにすべき...

asciicasts.com 30 Dec '12, 5pm

A good multistep form remembers the input between steps, allowing users to go backwards and forwards through the pages wit...

#javascript Rails 3.2, JQuery, Javascript for O...

freelancer.com 06 Jan '13, 12am

Freelancer.com (formerly GetAFreelancer) is the world's largest outsourcing and crowdsourcing marketplace for small busine...

The #RoasterieAdventure has

theroasterie.com 04 Jan '13, 2pm

JavaScript seems to be disabled in your browser. You must have JavaScript enabled in your browser to utilize the functiona...

Most singles want to get married, have two or m...

channelnewsasia.com 03 Jan '13, 3am

SINGAPORE: Most singles desire to get married and most wish to have two or more children, according to key findings of a M...

Ruby on Rails 3: Sign-In With devise and cancan

stackoverflow.com 01 Jan '13, 1pm

rspec test fail - user sign out - Ruby on Rails 3 Tutorial book Chap 9 Ruby on rails mysql problem CanCan, Devise, Rails a...

Who will be the lucky guy to get @JennyMcCarthy...

facebook.com 01 Jan '13, 3am

Facebook logo Sign Up Connect and share with the people in your life. Facebook Login Facebook Login You must log in to see...

Know someone who would benefit from learning HTML/CSS and/or Ruby on Rails? Point them here:

Know someone who would benefit from learning HT...

dolectures.com 04 Jan '13, 5pm

Make the shift from technology consumer to technology creator… Welcome to your future. Welcome to the world of the program...