Chris Domigan wrote:
>
> $("#delete"+stateIdVal).html("Really delete?");
>
> Is that what you're after?
>
Exactly what I'm after. I'd assumed it wasn't the correct method because of
the example given.
Chris Domigan wrote:
>
> Also, as a tip, instead of using "javascript:" calls inside your link,
> consider a more unobtrusive method.
>
There is the old empty anchor (#). Is that what you mean?
> Give each link a "delete" classname.
> Then you can do:
>
> $("a.delete").click(function() {
> if (confirm("Really delete?")) {
> // deletion stuff
> }
> });
>
>
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?
--
View this message in context:
http://www.nabble.com/Simple-delete-confirmation-tf2772121.html#a7732834
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/