Please try the sample code below and tweak it as per your requirement which might help you further.
Simple Jquery Dependent Picklist
The idea here to use jQuery and one small method to make the dependency. I have got this idea from here. 1) First make your parent select list as below
Please try the sample code below and tweak it as per your requirement which might help you further.
Simple Jquery Dependent Picklist
The idea here to use jQuery and one small method to make the dependency. I have got this idea from here.
1) First make your parent select list as below 2) Make your child select list. Make sure to give option a class name like this "child_{parent_record_value}". 3) Put the below code in your head section 4) Call the below method on load of the page. Make sure to pass proper parent and child select list ids. That's it. Now you can see on the page the dependency is created automatically.
You can see the working demo here
- http://labsprojects-developer-edition.ap1.force.com/DependentPicklist
Hope this will help you.Please mark this as solved if it's resolved.
Thanks,
Nagendra
plz send Overall Code
Would you be able to share the demo of the page?
Thx