Advertisement:

Author Topic: Disable location select boxes  (Read 720 times)

bwillnz

  • Newbie
  • *
  • Posts: 3
Disable location select boxes
« on: April 14, 2017, 01:12:17 pm »
Hello,

I want to disable the location dropdowns on my post item form.

I'm using the Patricia theme, and in the <script> area I have commented out the dropdowns onchange functions, and there was this part..

Code: [Select]
//DISABLE NAME & EMAIL INPUTS FOR LOGGED IN USER
      $('.add_item .seller_info.logged input#contactName, .add_item .seller_info.logged input#contactEmail').prop('disabled', true);

I have added the 2 select boxes into here to look like this..

Code: [Select]
//DISABLE NAME & EMAIL INPUTS FOR LOGGED IN USER
      $('.add_item .seller_info.logged input#contactName, .add_item .seller_info.logged input#contactEmail, .add_item .seller_info.logged select#regionID, .add_item .seller_info.logged select#cityID').prop('disabled', true);

But the select boxes are still enabled. Can any one help me to disable them please.