Created
May 24, 2013 18:21
-
-
Save gabrieldance/5645488 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>GIA Button Example</title> | |
<link rel="stylesheet" type="text/css" href="gia-tabbed-buttons.css"> | |
</head> | |
<body> | |
<h1>GIA Button Example</h1> | |
<a class="gia-tabbed-button gia-tabbed-button-first" href="#1">One</a> | |
<a class="gia-tabbed-button gia-tabbed-button-selected" href="#2">Two</a> | |
<a class="gia-tabbed-button" href="#3">Three</a> | |
<a class="gia-tabbed-button gia-tabbed-button-last" href="#4">Four</a> | |
<br> | |
<br> | |
<br> | |
<div class="gia-tabbed-button gia-tabbed-button-first">Five</div> | |
<div class="gia-tabbed-button">Six</div> | |
<div class="gia-tabbed-button">Seven</div> | |
<div class="gia-tabbed-button gia-tabbed-button-last">Eight</div> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script type="text/javascript"> | |
$('.gia-tabbed-button').on('click', function(e) { | |
console.log("clicked!") | |
// $('.gia-tabbed-button').on('mouseup', function(e) { | |
$('.gia-tabbed-button-selected').removeClass('gia-tabbed-button-selected') | |
$(this).addClass('gia-tabbed-button-selected') | |
}) | |
$('#btn-income').trigger('click') | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment