2 ms·
There's a lot of us about ;) That syntax you quote is not something I like, and isn't something that will run fast on browsers either. $('<code>') is quite ug
by axod 16y ago
There's a lot of us about ;)
That syntax you quote is not something I like, and isn't something that will run fast on browsers either.
$('<code>') is quite ugly. Any typos inside that string won't be caught. Also I don't find chaining to improve code readability.
Dealing with the DOM directly means you can optimize properly. For example, say you want to get an input elements value, in js you'd do:
theInputElement.value
Since you probably created or referenced the input element from js earlier and saved a ref to it...
- tkahn6 16y agoIf it works for you, more power to you. :)