Jump to content

Add


MelB

Recommended Posts

Hi,

 

I want to add a field in advanced search that allows user to select the parent category first. So in my case there are 2 parent categories of Service and Request category numbers of say 1 and 2. I want users to be able to select one or the other and this then only shows the sub-categories in the next select field for that parent category. 

Is this possible with advanced search? Here is my current code which currently displays both parent categories and their related sub categories:

 

<div class="jrFieldDiv jrLeft">
  {keywords}
</div><div class="jrFieldDiv jrLeft">
{jr_streetaddress}
</div>
<div class="jrFieldDiv jrLeft"> 
{radius options= Select radius, 5,10,15,20,25,30,40,50,60,70,80,90,100,120,150,200} 
</div>
<div class="jrFieldDiv jrLeft">
 {category}
</div>
<div class="jrFieldDiv jrRight">
   <button class="btn btn btn-primary horizontalsearchbutton">
    <span class=""></span><span>Search</span>
     </button></div>

 

Kind regards

 

Link to comment
×
×
  • Create New...