Now i can simply write this with jQuery:
$("a").selected(true);
var isSelected = $("a").selected();
Of course this led to being able to have a group of buttons with only one selected at a time:$("a.tab").selectedGroup();
I have the plugin up on GitHub with a little more explanation and a demo:https://github.com/jasonsavage2/jquery.selected
Let me know what you think.
No comments:
Post a Comment