How To Sum the Values of Form Fields

Author: , October 3rd, 2012

How To Get the Value of a Checked Radio Button in a Specific Form

Author: , September 7th, 2012

How To Get the Value of a Selected Radio Button in a Specific Form: jQuery(‘input[name=radioName]:checked’, ‘#yourForm’).val()

How To Create An Input Field Watermark Using jQuery

Author: , September 20th, 2011

Here is a VERY simplistic watermark code snippet. It has the distinct disadvantage of submitting the watermark string as the field value, and does not set the initial field value either…YMMV…

http://api.jquery.com/focusin/

How To Find Which Button Was Clicked To Submit A Form Using jQuery

Author: , July 2nd, 2011

How To Focus On The First Form Element Using jQuery

Author: , June 10th, 2011

How To Submit A Form On Select Change

Author: , May 3rd, 2011

How To Determine The Parent Form Element Of An Input

Author: , April 14th, 2011

Original Post: http://stackoverflow.com/questions/991367/how-to-get-the-form-parent-of-an-input Native DOM elements that are inputs also have a form attribute that points to the form they belong to: var Form = element.form; alert(jQuery(Form).attr(‘name’)); Use the jQuery closest() function for NON-INPUT elements: var $form = jQuery(element).closest(‘form’); alert($form.attr(‘name’)); Another cool post: http://stackoverflow.com/questions/311579/jquery-js-how-do-i-select-the-parent-form-based-on-which-submit-button-is-clic

CSS Form Attribute Selectors

Author: , March 30th, 2011

Generally well-supported attribute selectors: input[type=radio] input[type^=ra] input[type$=io] input[type*=d] Element input with attribute type which contains a value that is equal to, begins with, ends with or contains a certain value. Other safe selectors are: Parent > child that has: p > span { font-weight: bold; } Preeceded by ~ element which is: span ~ span […]

How to deal with broken form <input type=image> in IE

Author: , October 22nd, 2009

[code] <form method="post"> <input type="hidden" name="myName" value="" /> <input type="image" name="submit" value="42" src="icon.gif" onclick="this.form.myName.value = this.value"> </form> [/code]