This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SEND EMAIL WHAT SHOW ON CUSTOM BOX | |
function print_my_custom_notification_box( $post ) { | |
wp_nonce_field( 'my_custom_notification_box_nonce_action', 'my_custom_notification_box_nonce_field' ); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('#mynotification-box-button').click(function(e){ | |
e.preventDefault(); | |
$('#mynotification-box .spinner').show(); | |
$.ajax({ url: ajaxurl, data: { action: 'sendnotification', postID: $('#post_ID').val(), my_notification_nonce: $('#my_custom_notification_box_nonce_field').val() }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
var countryClass = '.dealer-country select', | |
dealerClass = '.dealer-name select', | |
savedtown = ''; | |
function get_dealer_name(){ | |
var countrySelect = $(countryClass), | |
country = countrySelect.val(), | |
dealerSelect = countrySelect.parents('form').find(dealerClass); | |
dealerSelect.attr('disabled','disabled'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- THE SCRIPT --> | |
<?php echo do_shortcode('[gravityform id="3" name="Competition Entry" ajax="true"]'); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
var countryClass = '.dealer-country select', | |
dealerClass = '.dealer-name select'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
var countyClass = '.dealer-country select', | |
dealerClass = '.dealer-name select'; | |
// disable dealer name before county county selected | |
$(dealerClass).attr('disabled','disabled'); | |
$(countyClass).change(function(){ | |
var countySelect = $(this), |