screenCheck関数showを検証後にのみ実行したい#contact_email
。しかし、私の場合、その前に実行されています。どうすれば修正できますか?
<script>
function screenCheck() {
var screenWidth = window.screen.width;
if (screenWidth == '1024') {
$('#textAreaMsg label.error').css('margin-left', '99px');
}
}
$(document).ready(function() {
$("#contact_email").validate(screenCkeck());
</script>