Created
May 31, 2011 15:52
-
-
Save jonpaul/1000743 to your computer and use it in GitHub Desktop.
Can't get client-side validation out of this form...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="noresultBox"> | |
<%= semantic_form_for :opportunity, :url => 'http://crm.investyourcar.com/opportunities/create', :html => { :id => "noResults" } do |f| %> | |
<div class="box"> | |
<ul> | |
<li> | |
<%= label_tag 'Full Name' %> | |
<%= text_field_tag :name %> | |
</li> | |
<li id="noresultsSubmit"> | |
<%= submit_tag "Contact InvestYourCar.com" %> | |
</li> | |
</ul> | |
<div class="clear"></div> | |
</div> | |
<% end %></div> | |
<% content_for :javascript do %> | |
<script type="text/javascipt" charset="utf-8"> | |
jQuery(document).ready(function(){ | |
jQuery('#noResults').submit(function(){ | |
alert('POASPFDOAD'); | |
return false; | |
}); | |
}); | |
</script> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment