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

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -