User: Markhurd/common.js
(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() { | ||
$(' | $('.submitSpam').click(function() { | ||
document.getElementById('wpComment').style.display='none'; | document.getElementById('wpComment').style.display='none'; | ||
form.elements[11].focus(); | form.elements[11].focus(); | ||
}); | }); | ||
}); | }); |