I would like to check if a field is empty or not with a javascript.
When I use formname.fieldname.value I always have an empty result even if there is a text in my field. After that, when i submit the form the value of the field is well print on my screen and it is not empty. But i would like the check the field before submitting the form.
When I use formname.fieldname.value I always have an empty result even if there is a text in my field. After that, when i submit the form the value of the field is well print on my screen and it is not empty. But i would like the check the field before submitting the form.