validate field in menu form

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
david1721
Advanced
Advanced
Posts: 24
Joined: Mon Dec 18, 2006 8:21 pm

validate field in menu form

Post by david1721 »

Hi

I want to add a javascript function to validate whether the text field I have
in my menu contains something, In which of the milonic js files should I put the function?

David
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi David,

I think you can put the function at the top of the menu data file just below the subOffset section. There is a demo for a form that uses an alert which I put on the index page, but I could have put it in the data file with the rest of the functions.

http://support.milonic.com/demos/select ... lected.htm

You can see the function on the page, but you could just as easily put it in the js file with the rest. This is the js file that does have a function in it for you to see.

http://support.milonic.com/demos/select ... elected.js

Hope this helps
Ruth
david1721
Advanced
Advanced
Posts: 24
Joined: Mon Dec 18, 2006 8:21 pm

Post by david1721 »

thanks
Post Reply