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
https://forums.phpfreaks.com/topic/234375-jquery-remove-div-row/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.