visionmedia/jade — Issue #519: how do I call function from client side java scripts?
Author: wggit
Created: 2012-03-02 17:01:42+00:00
State: open

I have two drop down lists in my form. Once user selected value from first list I want to filter second list as per selection and display. For that I am using onchange="showSubCat(); of first select option to get selected value. showSubCat() function is defined in client side js file. How do I get value returned by showSubCat() function in jade template so that I can filter array which is populating second list.

- var subcode = showSubCat();

gives error.

Any suggestions?
Thank you.