Jump to content

JQuery remove div row?


Jason28

Recommended Posts

Hello, the following article I found shows how to use jquery to click on an image and delete it from an html table row:

 

http://jquery-howto.blogspot.com/200...ser-click.html

 

I do not use html tables, I use div tags. How can I modify the code to work with <div> tags please? My html looks like this:

 

my html looks like this:

 

<div><a href="http://google.com">Google</a><img src="templates/images/red-x.png" class="delete" alt="Remove site" /></div>
<div><a href="http://yahoo.com">Yahoo</a><img src="templates/images/red-x.png" class="delete" alt="Remove site" /></div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.