On Apr 15, 2009, at 6:50 AM, MorningZ wrote:


I don't know if this falls under "bad practice" or not, but time and
time again here on the group, people post code like yours where they
use an <a> tag to do something that has nothing to do with an <a> tag

If you don't want to go somewhere, why not just use a <span> or a
<div> and hang the click event on that?  then propagation is a non-
issue


One reason to use a link rather than a span or a div is for (keyboard) accessibility. Links can have focus and can be tabbed to and triggered by pressing enter/return.

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com


Reply via email to