Skip to content

webarthur/jquery-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form Fields jQuery Plugin

jQuery Comparison

# normal ways
$('form#id_form').find('input[name=age]').val(29);

# or
$('form#id_form input[name=age]').val(29);

# with plugin
form.age(29);

Usage

Use the plugin as follows:

var form = $('form#id_form').fieldValues();

form.name('Arthur');
form.age(29);
form.description('Web developer.');

var name = form.name();

Get fields as objects

Use the plugin as follows:

var form = $('form#id_form').fields();

form.name.val('Arthur');
form.age.hide();
form.description.css('height', 200);

About

Obtain form input fields as object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published