in , , , , , , ,

Just another day on StackOverflow

Just another day on StackOverflow | html-memes, javascript-memes, java-memes, stackoverflow-memes, stack-memes, array-memes, jquery-memes, node-memes, nodejs-memes, function-memes, class-memes, overflow-memes, npm-memes, query-memes, ML-memes | ProgrammerHumor.io
html-memes, javascript-memes, java-memes, stackoverflow-memes, stack-memes, array-memes, jquery-memes, node-memes, nodejs-memes, function-memes, class-memes, overflow-memes, npm-memes, query-memes, ML-memes | ProgrammerHumor.io

[text] Anonymous 020116Mon160845 No.52739535 v 52739611 52740369 52740543 52740702 Q Newbie here. How do select multiple DOM elements that share a class name in javascript A 1000 Votes Its very simple 1. Install NodeJS 2. Install bower npm install g bower 3. Install Jquery bower install jquery 4. Import Jquery to your html script srcjquery.jsscript 5. To select ALL the elements with the same classname use this .classname will return array with elements A 500 Votes Jquery. A 300 Votes LOL. Jquery or mootools. R U DUMB XDDD A 1 Votes Javascript already has an built in function document.getElementsByClassNameclassname This will get you an array with all elements found.