Freid001 Posted October 24, 2014 Share Posted October 24, 2014 How do I find the nearest div of dynamically added html? Quote 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? Quote 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 Quote 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/ Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.