Egs to Example (#32648)
This commit is contained in:
committed by
The Coding Aviator
parent
bc84a7eb67
commit
e2b9b19b49
@@ -12,7 +12,7 @@ To return the value of a specified CSS property, use the following syntax:
|
||||
$(selector).css(propertyName);
|
||||
```
|
||||
|
||||
For eg:
|
||||
Example:
|
||||
```js
|
||||
$('#element').css('background');
|
||||
```
|
||||
@@ -24,7 +24,7 @@ To set a specified CSS property, use the following syntax:
|
||||
$(selector).css(propertyName,value);
|
||||
```
|
||||
|
||||
For eg:
|
||||
Example:
|
||||
|
||||
```js
|
||||
$('#element').css('background','red');
|
||||
|
Reference in New Issue
Block a user