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

use two div id in jquery

<script>
  $(function() {
    $("#segement1,#segement2,#segement3").hide()
  });
</script>

<div id="segement1"></div>
<div id="segement2"></div>
<div id="segement3"></div>
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 :: iframe content zoom in and zoom out jquery 
Javascript :: how to change data value in jquery 
Javascript :: how to prevent clickjacking in react js 
Javascript :: for loop js Alternatives 
Javascript :: toast js 
Javascript :: queryselector change alternative 
Javascript :: javascript addeventlistener pass parameters 
Javascript :: javascipt async 
Javascript :: js remove all attributes from element 
Javascript :: express formidable 
Javascript :: create canvas p5 
Javascript :: nodemon exclude 
Javascript :: redux thunk user login example 
Javascript :: how to call a function in javascript 
Javascript :: confirm alert 
Javascript :: switch expression bools 
Javascript :: javascript github 
Javascript :: display component in popup angular 8 
Javascript :: detect system dark mode tailwind css 
Javascript :: address validation in javascript 
Javascript :: history.pushstate 
Javascript :: javascript object get subset 
Javascript :: react s3 
Javascript :: javascript prototype vs constructor function 
Javascript :: match if 
Javascript :: javascript loop aray 
Javascript :: js electron setup 
Javascript :: fastest way to check a number is palindrome 
Javascript :: redirect to another path react 
Javascript :: javascript create object whose with keys in an array 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =