SHARE
TWEET

Untitled

a guest Feb 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('input[type="radio"]').click(function(){
  2.     if ($(this).is(':checked'))
  3.     {
  4.       $('form#my-form').submit(function(){
  5.         alert('form submitted');
  6.       });
  7.     }
  8. });
  9.    
  10. $('input[type="radio"]').click(function(){
  11.     if ($(this).is(':checked'))
  12.     {
  13.       $('form#my-form').submit();
  14.     }
  15. });
  16.  
  17. $('form#my-form').submit(function(){
  18.         alert('form submitted');
  19.       });
  20.    
  21. $('input[type="radio"]').click(function(){
  22.     if ($(this).is(":checked"))
  23.       $('form#my-form').submit();
  24. });​
  25.    
  26. $("#my-form").submit(function() {
  27.     alert("submitting form ...");        
  28. });
  29.    
  30. $(document).ready(function() {
  31.     $('input[type="radio"]').click(function(){
  32.         if ($(this).is(':checked'))
  33.         {
  34.           $('form#my-form').submit(function(){
  35.             alert('form submitted');
  36.           });
  37.         }
  38.     });
  39. })
  40.    
  41. $('yourForm').submit();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top