spanやdivやaタグをボタンにするjQuery pluginを書いてみた
jQuery Pluginの書き方 - KAYAC engineers' blog を参考にして、
tttbuttonという、spanやdivやaタグをボタンにするjQuery pluginを書いてみました。
GitHub - junish/tttbutton: Riding button of span or div with jQuery.
しかし、jQuery UIに最近追加されたbuttonプラグインが、aやbuttonやradioやinputをボタンにしてくれるっぽいという罠。
書いたjQuery plugin以上に使いやすげなので非常に萎えました。