8000 GitHub - duminhtam/Fake-Label: jQuery Plugin for input labels · GitHub
[go: up one dir, main page]

Skip to content

About

jQuery Plugin for input labels

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Fakelabel is a jQuery plugin that inserts a label inside your :input

Usage

In HTML:
1 - Add the data-label attribute to the :input you want with a fakelabel.
<input id="input_id" "type="text" data-label="Name">

2 - Add the following JS code to transform that field in a "fake label":
$('#input_id').fakelabel();

3 - Before saving the form, remove the label with the following code, considering that form_id is the id attribute of the form:
$('#form_id).removeDefaults();

About

jQuery Plugin for input labels

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

0