//Css $('elem').css('prop','val') //classes $('elem').addClass(); $('elem').removeClass(); $('elem').toggleClass(); $('.galleryBox').css('width'); //It will display 'width in pixels' properties of selector. $('.galleryBox').width(); //It will display the width only in numbers ( no units ) //It will display the height only in numbers ( no units ) $('.galleryBox').height(); //chechbox toggle/update/check let checkBox = $('input:checkbox').is(":checked"); console.log(checkBox) //It will True if it's checked, False if unchecked.
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter