Keypress event from custom script

how we can perform any event after press the key …please suggest me…is it possible or not

1 Like

@nikhil1 yes, you can

see this :

https://api.jquery.com/keypress/

1 Like

thank you i will try with your link

sir can you send me any sample code …actually i want to perform action when i will press any key …i want custom script code of erpnext

@nikhil1 Could you tell me your use case?

thank you for your reply sir …that work has completed

@nikhil1 I am glad it helps, share your code for other reference and mark my answer as solved please :grinning:

I am having the js code for this event on HTML table. Can you tell me how to implement that here ErpNext child table?

@Suresh_Alien Please look at this:

https://frappe.io/docs/user/en/guides/app-development/trigger-event-on-deletion-of-grid-row