jQuery Validation Plugin

About this forum
These forums have not been active for several years. They're available for search and reference, but a lot of this information is likely out of date.

For current information, try visiting our Knowledge Base.

Home / Support / Custom Module Development / jQuery Validation Plugin

This topic is: resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #112239

    Matthew
    Participant

    Hi,

    I’m developing a custom module and have a ‘Select’ settings field. I am trying to call a parsing function when the ‘Select’ field is clicked by using an onclick rule in the rules set by .validate() in JavaScript.

    The problem I’m having is when I click on the Select field it does nothing but when I cause the select field to lose focus it works. It seems like the onclick rule works exactly the same as the onfocuslost. Can you please help?

    #112342

    Ben Carlo
    Keymaster

    Hey Matthew,

    I’ve already assigned another member of the team to assist you with your concern.

    Ben

    #112435

    Justin Busa
    Keymaster

    Hi Matthew,

    I’m not quite sure I’m following what you are trying to do. Can you post an example of your code?

    Thanks,
    Justin

    #112440

    Matthew
    Participant
    This reply has been marked as private.
    #112472

    Matthew
    Participant

    Hi Justin,

    I’m terribly sorry, I have discovered how to accomplish this. I ran the function in the settings.js file (using $(‘.fl-builder-content’).on(‘fl-builder.preview-rendered’, function () { parseFunction(); });) as specified in your docs.

    I don’t believe the docs (at http://forum.wpbeaverbuilder.com/custom-module-documentation/) under the heading JavaScript Events specify that the code mentioned should be in the settings.js file which is where my confusion was.

    Thank you for your prompt response though.

    #112589

    Justin Busa
    Keymaster

    Hi Matthew,

    No problem. I’ll have at look at getting the docs adjusted.

    Justin

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Custom Module Development’ is closed to new topics and replies.