Hi,
I would like to add a custom class (radio-toggle), when a radio button in my custom search is clicked.
I´ve tried it by myself with:
[code]
jQuery(function($){
$('.filter1 input.mask:checked').next('label.radios-taxonomies-title').addClass( "radio-toggle" );
});
[/code]
But it doesn´t work. I´ve inserted this javascript to the JS section at my view at Search and Pagination. Can you please help me solving this?
Regards,
Hi Rainer,
Thank you for contacting us and I'll be happy to assist.
I tried to access your website (both front and admin area) and it seems there is an additional folder level protection enabled.
Can you please share login details to bypass that as well? It will allow us to troubleshoot why your script is not working.
( note: I have set the next reply to private which means only you and I will have access to it )
regards,
Waqar
Hi Rainer,
Thanks for writing back and for sharing the access details.
As much as we would like to help, I’m afraid, the support that we provide is limited to the code and built-in features covered in our plugins.
The custom script that you’re working with, will involve code specifically written for your website, which is beyond the scope of our support.
At this point I would suggest you to either ask this question at general jQuery forums or consider contacting one of our certified partners from this link:
hidden link
However, here are few links that may additionally help you:
=> https://stackoverflow.com/questions/17152494/jquery-addclass-to-label-if-radio-button-checked
=> hidden link
=> hidden link
If we can be of any further assistance, please let us know.
Regards,
Waqar
This should work by default at toolset as it is nothing unusual to create a new class on a checked element.