Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery multiple ids same function

 $('body').on('click', '#element1, #element2, #element3', function () {
 console.log('Hello Developers');
 })
 
 //HTML
 
<button id="element1">Element1</button>
<button id="element2">Element2</button>
<button id="element3">Element3</button>
Comment

select multiple id in jquery

$("#upload_link,#upload_link2,#upload_link3").upload(function(){ });
Comment

multiple elements with same id jquery

<div id="x1">A</div>
<div id="x1">B</div>
<div id="x2">C</div>

<script>
	console.log($('[id="x1"]'));
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: Check the render method of `App` 
Javascript :: vue 3 apollo client 
Javascript :: javascript remove last item 
Javascript :: glide.js autoplay 
Javascript :: detect keyboard open or close in react js 
Javascript :: javascript Example 1: Regular Expressions 
Javascript :: javascript timestamp conversion 
Javascript :: variables in js 
Javascript :: how to check for enter keyPress in react native 
Javascript :: how to use iframe for youtube video in react 
Javascript :: useEffect : react 
Javascript :: javascript count up timer 
Javascript :: manually set jquery text box 
Javascript :: export module in es6 
Javascript :: es6 javascript 
Javascript :: javascript array multidimensional push 
Javascript :: get selected value in dropdown 
Javascript :: js return the highest and lowest number 
Javascript :: array permutation 
Javascript :: jscrollpane set background color 
Javascript :: new date getday js 
Javascript :: how to get user info from google oauth node js 
Javascript :: javascript alert variable 
Javascript :: in vs of javascript 
Javascript :: dull or blur a background image in react native 
Javascript :: async storage react native 
Javascript :: mysql_real_escape_string for nodejs 
Javascript :: js convert obj to array 
Javascript :: remove 0 after decimal point in javascript 
Javascript :: regex date checker 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =