i have an anchor tag as follows
<a href="#divEditPrivilegeLevelForFile" id="filePrivilege" class="inline UpdateLink" title="Edit File Privilege Level" data-fileid="@item.FileId">[ Δ ]</a>
i have a list of files which are getting bound to this tag.
I want to fire an event to at this anchor tag but i cannot use the id because the id would repeat itself.
So i have to use the class name
but it doesnot work with the class name as it contains spaces in between.
How can i do that?
With jQuery you just select it by that class, it handles checking for spaces/etc on it’s own…
If you need it to have both classes in there you can just do: