-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
31 lines (26 loc) · 1.21 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
=================================================
jQuery Plugin: insideLabel
By David Jeanmonod
=================================================
Overview
--------
This plugin allows to display the input's labels or textarea inside the fields.
To use it, activate it on the label:
$('#labelId').insideLabel()
Then the label and the input will be encaplusated inside a relative span in order
to use abosolute positioning inside:
<span class="inside-label-container" style="position: relative">
<label ... >
<input ... >
</span>
For styling, here are the differents classes avaliable:
span.inside-label-container : The encaplusated span
input.with-label-inside : Field that have the label inside
label.inside : Label that are inside a field
label.value-set : Label of a field where the value isn't empty
label.focus : Label of a field that have the focus
label.inside.for-input : Label that belong to an input (text or password)
label.inside.for-textarea : Label that belong to a textarea
License
-------
This plugin is licensed under both the GPL and MIT licenses. Choose which ever one suits your project best.