• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: verify input length script problem?

verify input length script problem? 13 years 3 months ago #12508

  • au9879
  • au9879's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hello!

What could be the problem in this script? The length of input field has to be 5!
Script called on form process:
<script type="text/javascript"> 
function verify() 
{ 
if(document.getElementById('my_element').length != 5) 
{ 
alert("Length of Input field 'my_element' has to be 5"); 
return false; 
} 
else return true; 
} 
</script> 

Thank you!
Last Edit: 13 years 3 months ago by au9879. Reason: edit code
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!