Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var myBoolean=new Boolean();
- myBoolean = true;
- $('.lt').click(function() {
- if(myBoolean == true){
- $('#dropdown').hide('slow', function() {
- //alert('Animation complete.');
- myBoolean = false;
- $('#openclose').css("background-image", "url(images/arrow-closed.png)");
- });
- }
- else if(myBoolean == false){
- $('#dropdown').show('slow', function() {
- //alert('Animation complete.');
- myBoolean = true;
- $('#openclose').css("background-image", "url(images/arrow-open.png)");
- });
- }
- });
- });
Add Comment
Please, Sign In to add comment