Learn free jquery tutorials


How to check checkbox is selected or not in javascript|JQuery?

March 12, 2021 ·  3 min read

you can find checkbox checked or not using is() function or :checked attribute in jQuery, and also using checked property in plain JavaScript. This is an short tutorial on to check checkbox is checked with different jQuery versions. In html checkbox is created using html input tag as follows Html checkbox is written to select multiple values, But in this example, each checkbox name is different, return always single element in this example....


How to check element is visible or not in JQuery?

March 6, 2021 ·  2 min read

This is an short tutorial on Checking an div is visible or not in Jquery. In Html element can be shown or hide using below three approaches display -block/none visibility - hidden/none opacity - 0 to 1 For example, <div class="element1">element1</div> <div class="element2">element2</div> <div class="element3">element3</div> This results three divs are displayed to browser as like element1 element2 element3 Let’s make some style changes using display and visibility to hide element1 and element2...