jQuery not Method
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html> <head> <title>jQuery Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $( "#notExample" ).on( "click", function(event) { $("div").not(".remove-yellow-one,.remove-green-one,.remove-blue-one").css("border","3px solid red"); }); }); </script> <style type="text/css"> div{ height:100px; width:100px; margin:10px; float:left; } .black-one{ background:black; } .green-one{ background:green; } .blue-one{ background:blue; } .yellow-one{ background:yellow; } .gray-one{ background:gray; } </style> </head> <body> <h4><a href="javascript:void(0);" id="notExample">Click to run not() Example </a></h4> <div class='black-one'></div> <div class='green-one remove-green-one'></div> <div class='yellow-one remove-yellow-one'></div> <div class='gray-one'></div> <div class='yellow-one'></div> <div class='blue-one remove-blue-one'></div> </body> </html>
<!DOCTYPE html> <html> <head> <title>jQuery Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $( "#notExample" ).on( "click", function(event) { $("div").not(".remove-yellow-one,.remove-green-one,.remove-blue-one").css("border","3px solid red"); }); }); </script> <style type="text/css"> div{ height:100px; width:100px; margin:10px; float:left; } .black-one{ background:black; } .green-one{ background:green; } .blue-one{ background:blue; } .yellow-one{ background:yellow; } .gray-one{ background:gray; } </style> </head> <body> <h4><a href="javascript:void(0);" id="notExample">Click to run not() Example </a></h4> <div class='black-one'></div> <div class='green-one remove-green-one'></div> <div class='yellow-one remove-yellow-one'></div> <div class='gray-one'></div> <div class='yellow-one'></div> <div class='blue-one remove-blue-one'></div> </body> </html>
Copyrights@tutorialsplane.com