Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

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

, 18 Nov 2012 CPOL
$('.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 22:40 Available deepak.m.shrma
Updates in content. 24 changes had been made.
1 No 18-Nov-12 22: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
No Biography provided
Group type: Organisation (No members)



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