$('a.taskDelete').click(function(){
    return confirm('Please confirm deletion...');
  });

On Dec 2, 4:41 am, lattedaddy <[EMAIL PROTECTED]> wrote:
> Hi-
>
> I'm pretty new to both JS and JQuery.  Thanks for the help in advance.
>
> I have a link in my code as follows (it talks to an app to do a delete
> of a task)
>
>            <a class="taskDelete" href="/deletetask.do?id=55&aid=77" /
>
> >">Delete</a>
>
> When the link is selected I would like to popup a confirmation dialog
> and either do the delete or not depending on the answer in the
> confirmation dialog.  My intuition tells me this should be easy.  I've
> been working with jquery both with and without the impromptu plugin
> with no success.
>
> I must be missing something obvious.
>
> Thanks again,
> Bruce

Reply via email to