how to get inline javascript to fire with jQuery

Posted by lloydphillips on Stack Overflow See other posts from Stack Overflow or by lloydphillips
Published on 2010-06-02T05:04:24Z Indexed on 2010/06/02 5:13 UTC
Read the original article Hit count: 280

Filed under:
|
|

I have a javascript action on a div (asp.net panel) as an onkeypress attribute. This is the default action button on an asp.net Panel control. It contains the following:

onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_cp1_ucInvoiceSearch_btnSearch')"

For some reason when I change my textbox to a jQuery textbox clicking enter no longer fires this div. Why and how can I hook it back up so when I enter text in the textbox and click enter it fires?

Lloyd

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery