-
Notifications
You must be signed in to change notification settings - Fork 0
Functions
PrateekPathak9002 edited this page Nov 6, 2021
·
5 revisions
Syntax:
css(selector,props)
Example:
css('#p1',{
'color':'blue',
'background':'yellow'
})
Use : To edit css properties through js.
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
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