User: Markhurd/common.js

< User:Markhurd
(Trying to get submitSpam to focus the submit button...)
 
(try not specifying a type)
Line 1: Line 1:
// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"
// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"
$(document).ready(function() {
$(document).ready(function() {
         $('radio.submitSpam').click(function() {
         $('.submitSpam').click(function() {
             document.getElementById('wpComment').style.display='none';
             document.getElementById('wpComment').style.display='none';
             form.elements[11].focus();
             form.elements[11].focus();
         });
         });
     });
     });

Revision as of 06:19, 20 April 2013

// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"
$(document).ready(function() {
        $('.submitSpam').click(function() {
            document.getElementById('wpComment').style.display='none';
            form.elements[11].focus();
        });
    });
Discuss this page