I want to switch between CSS, so when the user clicks the button ( #user_button ), he shows the menu ( #user_options ) and changes the CSS, and when the user clicks it again, he returns to the normal state. So far, that's all I have:
$('#user_button').click( function() { $('#user_options').toggle(); $("#user_button").css({ borderBottomLeftRadius: '0px', borderBottomRightRadius: '0px' }); return false; });
Does anyone help?
jquery css toggle
Edd Turtle Jul 26 2018-10-18T00: 00Z
source share