On Mon, Nov 9, 2009 at 8:58 AM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote:
> I am attempting to add a class to a div before deleting it. I just cant > get the class to remove if the user selects no. > > Anyone have tips or a link with suggestions? I found the jquery.confirm.js > script but unable to add a class to the element being deleted before confirm > Hard to give guidance without seeing what code you are using now. Also, in your first paragraph you say "I just cant get the class to remove". In your second paragraph, you say you are "unable to add a class". So not sure which it is. Either way, $('#myDiv').addClass('className'); or $('#myDiv').removeClass('className') should be all you need. If those aren't working out, seeing some code would go a long way towards helping to troubleshoot. -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.