How to realize the conversion between ID and Class by jQuery
This article mainly shows you "jQuery how to achieve the conversion between ID and Class", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "jQuery how to achieve the conversion between ID and Class" this article.
Conversion between ID and Class
When changing the Window size, switch between ID and Class
$(document) .ready (function () {function checkWindowSize () {if ($(window). Width () > 1200) {$('body'). AddClass (' large');} else {$('body'). RemoveClass (' large');}} $(window) .resize (checkWindowSize);}) The above is all the content of the article "how to convert jQuery between ID and Class". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!