i_tejas19 Posted December 10, 2018 Share Posted December 10, 2018 I am appending a div and a ul inside a div with class middlepane but while doing so the classes target and connected are not applied to ul, my code is $( "<div class='inmiddle'>"+ type + "<ul class='target connected'></ul></div>").appendTo(".middlepane") ; i also tried this $( "<div class='inmiddle'>"+ type + "<ul class='target connected'></ul></div>").appendTo(".middlepane") ; $(".middlepane").find("ul").addclass("target connected"); but this also didn't work i also tried $( "<div class='inmiddle'>"+ type + "<ul class='target connected'></ul></div>").appendTo(".middlepane") ; $(".middlepane").children("ul").addclass("target connected"); this also didn't work Quote Link to comment Share on other sites More sharing options...
Guest Posted December 10, 2018 Share Posted December 10, 2018 Hello please use our new forum: forum.babylonjs.com Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 11, 2018 Share Posted December 11, 2018 Also, that looks like a question for a JQuery forum. On the way to the jQuery help pages and forums, you might wish to change 'target connected' to 'target_connected'. Cya later, somewhere else. Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.