Select by element title value - Javascript jQuery

Javascript examples for jQuery:Selector

Description

Select by element title value

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-1.6.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){/*from  w ww  .  ja  v  a2 s.  c  o m*/
$(document).ready(function(){
  $("[title=\"CAPPLLOCAL\"]").css("background-color","red");
});
    });

      </script> 
   </head> 
   <body> 
      <div title="CAPPLLOCAL">
         Value
      </div>  
   </body>
</html>

Related Tutorials