There is the old empty anchor (#). Is that what you mean?
Sure, if you are using <a>'s. Then just put a "return false;" in your
handler to stop it "jumping" to the top of the screen. You could always use
a <span>, then you don't have to worry about href etc. Although in an <a>
you get free hover behaviour...
This would be very neat. If I stored the records id in the id attribute,
eg:
<.a href="#" class="delete" id="NSW">Delete<./a>
how do I go about extracting that for use in the deletion function?
You can use this.id within the scope of the handler. eg:
$("a.delete").click(function() {
if (confirm("Really delete?")) {
delete(this.id);
}
});
"this" will give you the element that was clicked. You can do $(this) to
wrap that element in a jQuery object if you need extra functionality. So
this.id is the same as $(this).id().
Cheers,
Chris
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/