I want to reuse a script; for that I need to pass the input field name to the script. I added the '+' but it does not work. The script and form would look something like this:
<script>
function checkLength(fieldName){
if (document.myForm.+fieldName+.value.length > 400){
alert("Your...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.