Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<form>
  <input type="text" id="text1"  >
  <br>
  <input type="text" id="text2" >
      <br>
   <input type="text" id="text3" >
             <br>
   <input type="text" id="text4" >
       
       <br>
       <br>
         <input type="text" id="text5" >
              <input type="text" id="text6" >
                   <input type="text" id="text7" >
</form>
</body>
</html>
 
.el {
    width: 50px;
    height: 50px;
    background: red;
}
 
var _mouseDown = false;
$( document ).mousedown(function() {
    _mouseDown = true;
});
$( "input[id^='text']" ).mousemove(function() {
    if ( _mouseDown ) {
        $(this).css("border-color","black");
    } 
});
$( document ).mouseup(function() {
    _mouseDown = false;
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers