Just like in jQuery we can use $(\".classname\"), is there a similar thing in javascript as well? Or if we don\'t have such method then how can i implement that.
Accordi
Unfortunately not consistently between browsers. If you don't need all of jQuery, but still would like to do selection based on CSS selectors, take a look at Sizzle, the selector library jQuery uses.