I have the following code:
<input type="checkbox" onClick="toggle('husob_filter_orderby')" value=""/><?php echo JTEXT::_('FILTER_TH_ORDERBY'); ?></input><br>
<div id="husob_filter_orderby" style="display: none;">
<select name="orderby" class="select">
<option value="datetime_asc" ><?php echo JTEXT::_('FILTER_ORDER_DTASC'); ?></option>;
<option value="datetime_desc"><?php echo JTEXT::_('FILTER_ORDER_DTDES'); ?></option>;
<option value="ofiden_asc"><?php echo JTEXT::_('FILTER_ORDER_DENASC'); ?></option>;
<option value="ofiden_desc"><?php echo JTEXT::_('FILTER_ORDER_DENDES'); ?></option>;
</select>
</div>
The toggle inside the input
isnt functioning correctly. When I click the button it just hides the checkbox and doesnt toggle the div
.
What is wrong?
EDIT: The toggle function is being called inside an imported file and not very sure where I can locate it. I know the code works because it works on another version of Joomla but not on a newer version.
EDIT 2: I get no javascript errors.