Form validation before submitting

Please Try bellow code. i have made some changes in your code.it seems now working to me. i have changes fields name of forms and little bit changes in jquery. please check your end and let me know if your issue will solve. HTML <div id=”contact-form”> <form method=”post” action=”https://wordpress.stackexchange.com/” name=”pdf-download”> <div class=”podrecieved”> <h3>Recieved by<h3> </div> … Read more

Getting click on item to open closest relevant element (popup) with jQuery

You are facing this issue because all your popup container divisions have the same id and all the popup open can close buttons are targeting the same id. Change your code as follow: <td> <h4>Alert #1</h4> <a href=”#” class=”open-alert-popup” data-id=”popup_alerts_1″ data-animation=”flipAlertsRight”>Open Button</a> <!- below div is hidden till above link is clicked -> <div id=”popup_alerts_1″ … Read more

Theme customisation – how to store javascript externally when it utilises php variables?

Since it’s a plugin, you should enqueue jQuery first. Inside your add_action(‘wp_head’, function () { before wp_register_script( ‘custom_script’, get_stylesheet_directory_uri() . ‘/custom.js’ ); add : if ( ! wp_script_is( ‘jquery’, ‘enqueued’ )) { //Enqueue jQuery wp_enqueue_script( ‘jquery’ ); } This will check if jQuery is loaded and if not it will load it. Then, in your … Read more