Updated jQuery Form Field Default Value Plugin

by Jason on May 27, 2011

Hi everyone,

I finally got around to updating my jQuery plugin.

I’ve cleaned up the code a bit and also ensured full compatibility with jQuery 1.6.

A few new features:

Option for property-based default value
Now, if you choose, you can add a label=”my default value” as a property to your input field and the plugin will utilize this value for the default. You can still utilize the old method as well.

Option to allow form submission to send default values
By default, if default values are detected when a form is submitted, the values are emptied so an empty value is sent through. Now, you have the option of allowing the default value to be submitted.

Simply use the following code:


You can now find the latest version of the jQuery plugin on Github!