Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <form:select id="contract_ce" name="contract_ce" class="select2" data-placeholder="Click to Choose..." path="${status.expression}" items="${contract}" itemValue="name" itemLabel="description" />
  2.  
  3. name description
  4. License License
  5. Support Support
  6.  
  7. <form:select id="category_ce" name="category_ce" class="select2" data-placeholder="Click to Choose..." path="${status.expression}" items="${category}" itemValue="name" itemLabel="description" />
  8.  
  9. name description
  10. License_Training Training
  11. Licesnse_Clinic Clinic
  12. Support_Project1 Project1
  13. Support_Project2 Project2
  14.  
  15. $("#contract_ce").change(function(){         
  16. var value = $("#contract_ce option:selected").val();
  17. if (value === 'Support') {
  18. // Show only name with "Support_"
  19. } else {
  20. // Show only name with "License_"
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement