Hi there,
is there an option to limit the number of chars in a textarea of the build in form element?
Cheers
Michael
Hey Michael!
Please add following code to bottom of Functions.php file in Appearance > Editor and adjust the value (50) as needed
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery("textarea").attr("maxlength", 50);
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Best regards,
Yigit
Works great. Thanks