Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
  <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <title>Selector Mouseover Test</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <style type="text/css" media="screen">
      body { background-color: #000; font: 16px Helvetica, Arial; color: #fff; }
      div { background-color: #222; border: 1px solid #FFF; height: 20px; margin: 4px; }
    </style>
    <script>
      $(function(){
        $("div[id^='intCell']")
          .hover(function() {
            $(this).css({ "border":"1px solid #ff097c"});
          },function() {
            $(this).css({"border":"1px solid #000"});
      });
    </script>
  </head>
  <body>
    <div id="foo"></div>
    <div></div>
    <div id="intCell_1">This should change on mouseover/mouseout</div>
    <div id="intCell_2">This should change on mouseover/mouseout</div>
    <div id="intCell_3">This should change on mouseover/mouseout</div>
    <div id="bar"></div>
    <div id="baz"></div>
  </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers