.So thats how you use jQuery Class Selector to select element with single or multiple classes applied to it. Try Demo. Selecting an element(s) for further information refer to jQuery API Selectors. Basics: Select element by id Select all select elements Select all select elements by class.Select all options that have a value attribute set Select element by name . You should use attr(name) like this. (yourid).attr(name). You should use an id selector, if you use a class selector you encounter problems because a collection is returned. jQuery Get/Set. jQuery Add/Remove.jQuery Selectors allow you to select and manipulate the elements you can select the element by its tag name,id,class etc. The selected selector is applicable for option, not for the select so. ( select[name"platform"] :selected).attr(class). Demo: Fiddle.Get selected text from a drop-down list (select box) using jQuery. 770. Selecting element by data attribute. I need to pick id od selectable when Test1 or Test2 are clicked.