Find my element has `inline` style applied - Javascript jQuery

Javascript examples for jQuery:Tag Traversing

Description

Find my element has `inline` style applied

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.js"></script> 
  <script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*w w w.ja  v a2  s .co m*/
var sty = $('span').is('[style]');
console.log(sty);
    });

      </script> 
 </head> 
 <body> 
  <span style="border:1px solid red;">Testing</span>  
 </body>
</html>

Related Tutorials