[COLOR="Red"]Having the text box inside a collapsible content DIV shouldn't stop it from receiving onkeypress events. Using the default demo on the DD script page, I've added a text box and textarea inside the 1st collapsible DIV, then attached a keydown event to both of them, which works:
Code:
<p><b>Example 1 (individual):</b></p>
<div id="jason" style="width: 300px; background: #FFFFCC; display:none">
<form>
<input class="t" type="text" /><br />
<textarea class="t">sdf ds</textarea>
</form>
</div>
<script>
var $t=$('.t')
$t.keydown(function(){
alert('hi')
})
</script>
I suspect the issue might be due to the way you're attaching the event to your own form fields.
Bookmarks