Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>JSbin Test</title>
  
</head>
<body>
<form>
  <input id="submit" type="image" src="http://pixelgraphics.us/test/button.png" />
  Hola
</form>
</body>
</html>
 
$("#submit").click(function(e){
  alert ('here'); jQuery("#submit").attr('disabled','disabled').toggleclass("myclass");
      return false;
  });
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers