Click here to Skip to main content
13,299,898 members (63,066 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted 18 Nov 2012

jQuery selection div html() by click something in div.

, 18 Nov 2012
$('.remove').click(function () {var postHTML = $(this).closest(".post").html(); // select closest div or element with class post });try this. its working fine.

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 18-Nov-12 17:40 Available deepak.m.shrma
Updates in content. 24 changes had been made.
1 No 18-Nov-12 17:39 Available deepak.m.shrma

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

deepak.m.shrma
Software Developer NEC HCL ST
India India
This member doesn't quite have enough reputation to be able to display their biography and homepage.
Group type: Organisation (No members)



You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 18 Nov 2012
Article Copyright 2012 by deepak.m.shrma
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid