selecting a class in a specific div using jquery -


i have div id , in div there div class "sizeselect". want select div , apply new class cant seem work.

basically want select div "sizeselect" in div "img18" (imgid generated dynamically)

$("#img"+imgid+" .sizeselect").toggleclass('selected').toggleclass('unselected'); 

what missing? thanks


Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -