Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery multiple ids same funjquery apply function to multiple elementsction

 $('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

jquery multiple ids same funjquery apply function to multiple elementsction

 $('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 :: getting te value of select multiple value 
Javascript :: javascript find the longest word in a string 
Javascript :: getting data from an api 
Javascript :: create-react-app npm yarn 
Javascript :: javascript get smaller of two numbers 
Javascript :: javascript change right click menu 
Javascript :: swap numbers in javascript 
Javascript :: javascript optional add object key 
Javascript :: how to insert with variables from js to mysql 
Javascript :: react form 
Javascript :: Appending the option element using jquery each function 
Javascript :: card react native 
Javascript :: js string replace array 
Javascript :: how to make alert in javascript 
Javascript :: Get Keys Of JSON As Array 
Javascript :: react router v6 lazy suspense 
Javascript :: javascript parsefloat 
Javascript :: toFixed() javascript precision 
Javascript :: javascript render jsx element x many times 
Javascript :: Square star pattern in JavaScript 
Javascript :: get role id from role position 
Javascript :: extended class call method from super in javascript 
Javascript :: fetch method post handing the post add on php 
Javascript :: js filter array of objects by another object 
Javascript :: datatable bootstrap cllick on specific button 
Javascript :: discord.js make channel private 
Javascript :: Conditionally pass props to react component 
Javascript :: what is the difference between console.log and return 
Javascript :: redux reducer 
Javascript :: mongoose remove data 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =