Magento Forum

   
How do I add jQuery script? 
 
allanwebix
Jr. Member
 
Total Posts:  11
Joined:  2012-10-01
 

I already added a textbox under each products but I want to validate that textbox for a certain page…

 
Magento Community Magento Community
Magento Community
Magento Community
 
DustinEMiller
Jr. Member
 
Avatar
Total Posts:  23
Joined:  2011-09-14
 

I’m not entirely sure what you’re asking, but if you’re asking how to add a script to validate data in forms, you can use the built in validation classes. See here

 
Magento Community Magento Community
Magento Community
Magento Community
 
DevAngelo
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2012-11-15
 

Hi,
I am not sure what you actually want to do, but here is the solution on the basis that I understood from your post:
1. Create your JavaScript/jQuery files with the validations you want.
2. Add the file either to page.xml or local.xml
3. Place the file in magento->js->your_theme_name folder or magento->app->design->frontend->default->your_theme_name->js folder.

If you think that I have diverted myself from what you want, then please clarify and brief your issue.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top