Guest User

Untitled

a guest
May 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <label for="type">Type</label>
  2. <select name="type" id='type'>
  3. <option value="Customer">Customer</option>
  4. <option value="Revenue">Revenue</option>
  5. <option value="Guide">Guide</option>
  6. <option value="Internal">Internal</option>
  7. </select>
  8.  
  9. <label>SMS_Outage</label>
  10. <input id='outage' type="radio" name="to1" value="1" checked='checked'>
  11. <label>AD_Outage</label>
  12. <input id='ads' type="radio"name="to1" value="2">
  13. <br/>
  14.  
  15. <script>
  16. $('#type').change(function() {
  17. if ($('#type').attr('value')=='Guide') {
  18. $("input#outage").check();
  19. }
  20. else
  21. {
  22. $("input#ads").check();
  23. }
  24. });
  25. </script>
Add Comment
Please, Sign In to add comment