Skip to content

JQuery plugin to extend and improve the default .val() method

Notifications You must be signed in to change notification settings

giovazz89/enhanced-val

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

enhanced-val

jQuery plugin to extend and improve the default .val() method

Have you ever wanted to get or set a value to checkboxes, radio buttons or even text elements with the jQuery val() function? Try out enhanced-val.js!

Usage

$('elements_selector').val(value, resetField);

Param Type Default Description
value string or string[ ] Optional. The value/values you want to set to the objects: if not present it returns the current value
resetField boolean true Optional. If false doesn't overwrite the previos value, but appends the new one to it

enhanched val (.val()) returns the string value for each selected element if no value to set is specified: the return format can be string or string[ ]

Example here

About

JQuery plugin to extend and improve the default .val() method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published