WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
? How to use jQuery in the Messages area? (1 post)

  1. tyatt
    Member
    Posted 1 year ago #

    Hi all,

    I'm trying to see if I can use jQuery to get at the POST variables of the form, AFTER the submit button is hit. But all I got was undefined:

    <h4>Thanks for your submit, </h4><script>var name = $("#FirstName").val(); alert(name);</script>

    The return is "undefined".

    I have searched highs and lows, but could not find any answers. Seems like jQuery is enabled because I have no problem submitting the form, just that I cannot get to the POST variables.

    There was a thread long time ago about changing the script.js beacuse it was clearing the form and all data is lost, but it does not seem to apply anymore as the code for CF7 has changed a lot.

    Please help if you have any idea? Totally stuck for a few days already.
    Thanks so much!

    http://wordpress.org/extend/plugins/contact-form-7/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.