[Plugin: Contact Form 7] Add javascript to form elements? (3 posts)

  1. pajanator
    Posted 7 years ago #

    Is there a way to insert javascript into <input>, <textarea>, etc?
    I need to insert these two attributes:
    onmouseover="javascript:return element_over(this, 'hover');"
    onmouseout="javascript:return element_out(this, 'hover');"

    Thanks a lot.

  2. Takayuki Miyoshi
    Posted 7 years ago #

    You can't set onmouseover directly but you can get it with short JavaScript code. Here is jQuery code sample.

    Events/mouseover - jQuery JavaScript Library

  3. nachoplaza
    Posted 7 years ago #

    Thanks for the example code and the plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic