Every line of 'jquery set id' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
210 function elemId(id) { 211 return document.getElementById(id); 212 }
29 function id(idStr) { 30 return document.getElementById(idStr); 31 }
3 export function $id(id) { 4 return $("#" + id); 5 }
6 function $id(id) { 7 return document.getElementById(id); 8 }
9 function $id(id) { 10 return document.getElementById(id); 11 }
29 function $id(id) { 30 return doc.getElementById(id); 31 }
253 function $ (id) { 254 return typeof id === 'string' ? document.getElementById(id) : id; 255 }
88 function setVisible(id){ 89 xoopsGetElementById(id).style.visibility = "visible"; 90 }
43 function setId(element, idPrefix, idSuffix) { 44 if (!element.is('[id]')) { 45 element.attr('id', idPrefix + idSuffix); 46 } 47 return element.attr('id'); 48 }
20 function $id( id, arr ){ 21 if( Array.isArray( arr ) ){ 22 const res = []; 23 24 for( let i = arr.length; i--; ){ 25 const x = arr[ i ].getElementById( id ); 26 if( x ) res.push( x ); 27 } 28 29 return res; 30 } 31 32 return arr.getElementById( id ); 33 }