How TO Check if checkbox is checked with jQuery?

Today, We want to share with you How TO Check if checkbox is checked with jQuery.In this post we will show you check if check box is checked jquery using class, hear for how to check multiple check box is checked or not in jquery we will give you demo and example for implement.In this post, we will learn about How to check whether a check box is checked in jQuery? with an example.

How TO Check if checkbox is checked with jQuery

There are the Following The simple About Check if a Check Box is checked or not using ID in JavaScript and jQuery Full Information With Example and source code.

Read Also:  Get Gravatar Image Using PHP Example

As I will cover this Post with live Working example to develop check if check box is checked java-script, so the jquery get check-box value if checked is used for this example is following below.

How to Check a Check box is Checked or Not Using jQuery?

Check whether a check box is checked with JavaScript or jQuery Example.

index.html

<html>
<head>
  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
	<script>
		$(function(){
			$( "input[type=checkbox]" ).click(function(){
				if($( "#infi" ).is( ':checked' )){
					$( '.results' ).text( 'Good! We are agreed!' );
				}else{          
					$( '.results' ).text( 'We disagree??. We should agree..come on tick the box!' );
				}
			})
		});
	</script>
</head>
<body>
	<p class="results"> </p>
	I agree to the T&C :<input type="checkbox" name="newsletter" id="infi" value="Hourly">
</body>
</html>

Web Programming Tutorials Example with Demo

Read :

Read Also:  jquery radio button checked

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about check if checkbox is checked jquery using id.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.