Hi to all my co developer,
I Have a bug using this function.
function clickHandler() {
$('#show').toggle('fast');
$('#hide').toggle('fast');
}
$(document).ready(function(){
$('#show').hide();
$('#hide').on('click', clickHandler);
});
<li id="hide" ><a href="switch_lang.php?lang=2">Arabic </a></li>
<li id="show" style="display:none;"><a href="switch_lang.php?lang=1">English </a></li>
Problem: When I click the Arabic button did not hide or toggle to English button.
Thank you in advance.