Skip to content

Functions

PrateekPathak9002 edited this page Nov 6, 2021 · 5 revisions

css()

Syntax:

css(selector,props)

Example:

css('#p1',{
    'color':'blue',
    'background':'yellow'
})

Use : To edit css properties through js.


click()

Syntax:

click(selector,function)

Example:

css('#p1',myFunction)

Use : To make it easier to detect clicks .To use event properties, add the argument e/event to your function


hover()

Syntax:

hover(selector,function)

Example:

hover('#p1',myFunction)

Use : To make it easier to detect hover overs.To use event properties, add the argument e/event to your function


Clone this wiki locally