jquery manipulation - sinsunsan/archiref_wiki GitHub Wiki
-
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/