Code to Auto Select an Item the drop-down menu

  • 27 September 2018
  • 0 replies
  • 34 views

Badge

We have two different portals, one for IT and one for maintenance. What I am needing to do is hide the required "Category" field on maintenance but at the same time have it auto select "other". We use the category field heavily on our IT portal so I need it required.


I already have the code to hide the field, but can't find/figure out the code to have it auto select an option. Any welcome is welcomed with open arms.


Here is the code I am using to hide the "Category" field


<script type="text/javascript">


jQuery('#helpdesk_ticket_ticket_type').parent().parent().hide();


</script>


mdportal_35812.pngitportal_35812.png

This topic has been closed for comments