Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form:select id="contract_ce" name="contract_ce" class="select2" data-placeholder="Click to Choose..." path="${status.expression}" items="${contract}" itemValue="name" itemLabel="description" />
- name description
- License License
- Support Support
- <form:select id="category_ce" name="category_ce" class="select2" data-placeholder="Click to Choose..." path="${status.expression}" items="${category}" itemValue="name" itemLabel="description" />
- name description
- License_Training Training
- Licesnse_Clinic Clinic
- Support_Project1 Project1
- Support_Project2 Project2
- $("#contract_ce").change(function(){
- var value = $("#contract_ce option:selected").val();
- if (value === 'Support') {
- // Show only name with "Support_"
- } else {
- // Show only name with "License_"
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement