3 ms·
That isn't necessary. This does the same thing: var d = $('#elm'); d.color('red'); // do some stuff here. d.text('new text');
by Encosia 16y ago
That isn't necessary. This does the same thing:
var d = $('#elm');
d.color('red');
// do some stuff here.
d.text('new text');
- andrewf 16y agoSome use the convention that jQuery objects should be prefixed with $, so: var $d = $('#elm'); $d.color('red'); $d.text('new text'); I do this, and like it, despite my classic aversion to both Systems Hungarian and GW-BASIC.