Skip to content

Instantly share code, notes, and snippets.

@misfo
Created April 10, 2009 16:37
Show Gist options
  • Save misfo/93155 to your computer and use it in GitHub Desktop.
Save misfo/93155 to your computer and use it in GitHub Desktop.
<% content_for(:head) do -%>
<script type="text/javascript">
//<![CDATA[
$(function() {
$("#form_link").click(function() {
$("#form_submission_business_name").focus();
});
});
//]]>
</script>
<% end -%>
...
<a id="form_link" href="#form">contact form</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment