Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>Is this a jquery 1.4.2 bug</title>
</head>
<body>
  <pre>
[this] should be the form element
but when I pass [this] through .trigger() it becomes the button element
</pre>
  <form class="aClassOfforms"><button type="submit">Submit</button></form>
  
  <pre>
pass a string through trigger
and it remains intact at the other end
</pre>
  
  <form class="aSecondClassOfforms"><button type="submit">Submit</button></form>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers