vimwiki/tech/jQuery.wiki

14 lines
311 B
Plaintext
Raw Normal View History

2021-11-20 20:45:01 +00:00
= jQuery =
jQuery is the most popular and powerful javascript library around. To include
it, just include it via a script tag.
== Access elements in the DOM ==
To access something with the a class, ie the first element in the page with the
class 'food', this code would suffice
{{{
$('.food').first()
}}}