I have got a div containing some html elements. They all have a class named
class="fileItem read write".
But there could be an Element with
class="fileItem read write selected".
Now I want to get this element with the additional 'selected' tag and edit this. Currently I have an in JQuery
$(".fileItem").click(function(){
// Code
});
which detect an click on one of these fileItems.
Here I want to edit style tag of the element with 'selected' tag. So is there something where I can say get all by class and select the on with "selected"?
hasClass$(".fileItem.selected")- This will only be called when classselectedis present with classfileItem.