Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
(Move to ...)
Home
Me
▼
Wednesday, December 22, 2010
attr jQuery
Here's a bit of code on how to use attr:
var id = $('#satu').attr('id');
$('#dua').attr('id','lola');
$('#tiga').attr({'id':'empat','class':four','title':
'A Sample Of Text'});
// Object literal
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment