Due to the use of the plugin, I cannot add the "onClick" attribute to the inputs of the HTML form, as usual. The plugin processes part of the forms on my site, and it does not allow you to do this automatically.
I basically have this input:
<input type="text" id="bfCaptchaEntry" name="bfCaptchaEntry" style="">
I want to add onClick to it using jQuery onload so that it looks like this:
<input onClick="myfunction()" type="text" id="bfCaptchaEntry" name="bfCaptchaEntry" style="">
How should I do it?
I know that this may not be standard practice, but it seems that this is the easiest option in my situation.
I am new to jQuery, so any help is greatly appreciated.
javascript jquery html
Claudio Delgado Sep 05 '12 at 14:50 2012-09-05 14:50
source share