you will learn how to get HTML elements id, name, tag, class, attribute, value using getElementById(), getElementsByClassName(), getElementByName(), getElementsByTagName() in JavaScript. The biggest change in CoffeeScript 2 is that now the CoffeeScript compiler produces modern JavaScript syntax (ES6, or ES2015 and later). If it is true, it should perform an action. Alternatively, specify static for a backdrop which doesn't close the modal on click. Consider the following example. It may cause problems in some browsers. You can use the .prop(propertyName) function to get a property from the first element in the jQuery object. W3Schools offers free online tutorials, references and exercises in all the major languages of the web. jquery count the elements by class and set the another class a certain element in the list. The :selected selector works for