Freid001 Posted October 24, 2014 Share Posted October 24, 2014 How do I find the nearest div of dynamically added html? Link to comment https://forums.phpfreaks.com/topic/292033-find-the-nearest-div-of-dynamically-added-html/ Share on other sites More sharing options...
CroNiX Posted October 24, 2014 Share Posted October 24, 2014 That would depend on if you're using pure javascript or jQuery or some other library? Link to comment https://forums.phpfreaks.com/topic/292033-find-the-nearest-div-of-dynamically-added-html/#findComment-1494601 Share on other sites More sharing options...
Freid001 Posted October 24, 2014 Author Share Posted October 24, 2014 Im using Jquery Link to comment https://forums.phpfreaks.com/topic/292033-find-the-nearest-div-of-dynamically-added-html/#findComment-1494605 Share on other sites More sharing options...
CroNiX Posted November 3, 2014 Share Posted November 3, 2014 http://api.jquery.com/closest/ Link to comment https://forums.phpfreaks.com/topic/292033-find-the-nearest-div-of-dynamically-added-html/#findComment-1495632 Share on other sites More sharing options...
Psycho Posted November 3, 2014 Share Posted November 3, 2014 Of course, JavaScript has no knowledge of what content was generated dynamically and what wasn't. Link to comment https://forums.phpfreaks.com/topic/292033-find-the-nearest-div-of-dynamically-added-html/#findComment-1495633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.