Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_head', function () { ?>
- <script>
- jQuery(document).ready(function() {
- var resident_input = jQuery('input[name="wa_resident_yes_no"]')
- resident_input.change(function(){
- var checked = resident_input.filter(':checked');
- var checked_val = checked.val();
- console.log(checked_val) ;
- jQuery.ajax({
- type: 'post',
- url: '' ,
- data: {resident : checked_val},
- success: function(data){
- console.log("success!");
- //console.log(data);
- }
- });
- }) ;
- });
- </script>
- <?php });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement