[jQuery] Internet Explorer, Funky Keyup?
Alright, this works in Firefox. I'm using the DOM Plugin to generate
some HTML...
http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype
--- Enter Code ---
<div id="contactSearch">Loading Search Material. This site requires
Javascript Enabled</div>
<script language="Javascript" type="text/javascript">
function contactSearchPrototype() {
var pt = $.DIV({"class": "contactSearch"},
$.FORM({"action": "#", "class":"contactSearchForm",
"method":"POST"},
$.TABLE({"class": "contactSearchForm"},
$.TBODY({},
$.TR({},
$.TD({}, "Name: "),
$.TD({}, $.INPUT( {"name":"name"}) )
)
)
)
)
);
$(pt).find("INPUT").keyup( function(e) { alert("Test: "+this.value+"
"); });
return pt;
}
$(document).ready( function () {
$("#contactSearch").empty().append(contactSearchPrototype()); });
</script>
--- exit code ---
If i change the event to "change" it works fine, but I want to get the
keyup events so that I can update the search results as the person types.
Any thoughts?
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/