Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
<textarea id="txtSearchProdAssign"></textarea>
  
<input type="text" name="butAssignProd" placeholder="click here" >
</body>
</html>
 
$(function(){
  $('input[name="butAssignProd"]').click(function(){
    alert('hii');
  });
  
  
  //press enter on text area..
  
  
$("#txtSearchProdAssign").keyup(function (e) {
  if (e.which == 13) {
    $('input[name="butAssignProd"]').trigger('click');
  }
 });
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers