tag:blogger.com,1999:blog-8712770457197348465.post282293994629722186..comments2024-03-19T01:04:48.783-07:00Comments on Javarevisited: How to use jQuery Class and Id Selector to find DOM elements? Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8712770457197348465.post-38457600399498063732015-06-07T23:18:55.783-07:002015-06-07T23:18:55.783-07:00main difference between class and Id selector in j...main difference between class and Id selector in jQuery is that class selector starts with dot (.) while ID selector starts with pound (#) e.g.<br /><br />$(".articles") will select all elements which has class articles applied on them<br /><br />$(#article) will only select the element with id article, remember a webpage cannot have elements with duplicate id, which means on id can Anonymousnoreply@blogger.com