Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript get data attribute of selected option

function check_status(obj) {
  var uid = obj.options[obj.selectedIndex].getAttribute('data');
  alert(uid);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript run function once 
Javascript :: js addeventlistener click 
Javascript :: javascript split numbers into array 
Javascript :: next js tailwind 
Javascript :: mongoose virtual populate not working 
Javascript :: javascript move element in array 
Javascript :: regex replace cpf 
Javascript :: js array for in vs for of 
Javascript :: discord.js role regex 
Javascript :: vanilla javascript remove data attribute 
Javascript :: react index.js BrowserRouter 
Javascript :: sendgrid nodejs send email template 
Javascript :: remove add event listener jquery 
Javascript :: js add params to url 
Javascript :: find missing number array javascript 
Javascript :: replace non alphanumeric javascript 
Javascript :: comprimento string javascript 
Javascript :: disable back button in react native 
Javascript :: loop through json object javascript 
Javascript :: jquery get value by name 
Javascript :: js ask before close 
Javascript :: node.js socket.io send data with handshake 
Javascript :: fakepath js 
Javascript :: install aos in react 
Javascript :: js make element invisible 
Javascript :: express static auth 
Javascript :: Chart is not a constructor 
Javascript :: javascript loop through objec 
Javascript :: bootstrap modal popup disable click outside 
Javascript :: give the player an item skript 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =