I have an app where I need to call some JS in the onLoad event of the BODY tag of two forms. However, I can’t find how to modify the tag for just them. Does anyone know?
Frank
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
inkedmn certainly has provided the right answer for this case, but in general, you can “hand information up” like this:
(in views/controller/view.ctp)
(in views/layouts/default.ctp)
I often use it like this to add extra classes to a “top level element”: