Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<title>SwitchClass method Demo</title>
<script src="jquery_plugin.js"></script>
<script type="text/javascript" src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.core.js">
    </script>
<style type="text/css">
    .noellipsis{
        width: 200px;
        color: Red;
    }
    .ellipsis{
        color: Blue;
    }
</style>
<script>    
$(document).ready(function(){
        $('#btnSwitch').click(function(){
        $(".ellipsis").switchClass("ellipsis","noellipsis",2000);
        $(".noellipsis").switchClass("noellipsis","ellipsis",2000);
          return false;
        });
    });
</script>
</head>
<body>
  <input type="button" id="btnSwitch" value="weiterlesen" />
  
  <div class="tab ellipsis">
     jQuery By Example Rocks!!!
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers