hello devs, great theme!
i have a problem i would like to check with you,
when someone writes me a message in the contact form and he presses enter in order to start a new row in the message – but instead the enter acts like a click on the submit button. as a result, the client is sending me the email.
how can i make the enter key act like a new row and not as a submit click?
thanks in advance,
eynav
Hey graphico!
Try adding this to the bottom of your /enfold/functions.php file.
add_filter( 'wp_footer', 'enfold_customization_prevent_enter_submit' );
function enfold_customization_prevent_enter_submit() {
?>
<script type = "text/javascript">
jQuery(document).ready(function() {
jQuery(window).keydown(function(event){
if(event.keyCode == 13) {
event.preventDefault();
return false;
}
});
});
</script>
<?php
}
Cheers!
Elliott