What does the '#' sign mean in JavaScript? -


i'm new javascript , i'm try understand code. don't understand , can't find documentation # sign.

$(function () {       $("#searchterm").autocomplete({ 

what $("#searchterm") mean?

in javascript? nothing special. part of string.

the $ function might it, it hard tell $ function is.

there lot of libraries provide $ function acts kitchen sink library. include prototype, mootools , jquery. 1 looks jquery, in case argument string containing css selector, # indicates start of id selector.

this "selects single element given id attribute".


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -