-
Notifications
You must be signed in to change notification settings - Fork 1
Jquery manipulation
Sébastien LUCAS edited this page Aug 7, 2013
·
5 revisions
-
attr
http://api.jquery.com/attr/
Get or set html atributes
// Set the value of a input button
<input type="submit" value="Étape suivante">Next</input>
$('#edit-next').attr('value', 'ceci est le bouton submit');
-
text
http://api.jquery.com/text/
Get and set html text (contaiend between tags) -
position Get the position of a selected element relative to its immediate parent
http://api.jquery.com/position/ -
offset Get the position relative to the document
http://api.jquery.com/offset/