Skip to content

Instantly share code, notes, and snippets.

@jeffdeville
Created November 11, 2010 01:51
Show Gist options
  • Save jeffdeville/671847 to your computer and use it in GitHub Desktop.
Save jeffdeville/671847 to your computer and use it in GitHub Desktop.
<li>
<a class='prodImage' href='#' target='_blank'>
<img alt='' src='/images/wg_noProdImage.png'>
</a>
<a class='prodTitle' href='#'>
From here, i can just recommend whatever I want.
</a>
<a class='rate_button' href="javascript:">Select</a>
<input id='gi_4cd9dafc404aaa17ca000062_selected' name='gi[4cd9dafc404aaa17ca000062][selected]' type='hidden' value='false'>
<br class='clear'>
<textarea class='addGiftNotes' id='gi_4cd9dafc404aaa17ca000062_comments' name='gi[4cd9dafc404aaa17ca000062][comments]'>Add additional gift notes here (optional)</textarea>
</li>
@jeffdeville
Copy link
Author

Change the Select from an input type=image to an anchor, so it doesn't try and submit the form, and to prevent it from sending fields I don't need.

Also, I'm going to make that select button set that hidden field value to true/false, based on whether it's clicked or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment