GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

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
Share/Bookmark

No comments:

Post a Comment