Source Code:
Result:
Note:
Check and uncheck the checkbox and then click the button to refresh content.
Check value of attr() and prop()
Check me
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself