How does jquery delete the background color
This article mainly explains "jquery how to delete the background color", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "jquery how to delete the background color" bar!
The specific steps are as follows:
1. First, create a new html project and introduce jquery into the project
two。 After introducing jquery, create a div tag in the project and set the width and height
After the 3.div tag is created, use the background attribute to set the background color for the tag
4. After the label background color is set, add a button button and bind the onclick click event to click to delete the background color
5. Finally, after the button is added, the tag object is obtained by signature in the click event, and the background color can be deleted by setting the background property to none using the css () method.
Function set () {
$(div) .css ('background','none')
}
Thank you for your reading, the above is the content of "how to delete the background color of jquery", after the study of this article, I believe you have a deeper understanding of how to delete the background color of jquery, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!