Tag Archives: multiarray

549 views

JS multitype multi type array javascript

<div id="idMyDiv"></div> <div id="idOtherDiv"></div>   <script> var myDiv = document.getElementById(’idMyDiv’); var otherDiv = document.getElementById(’idOtherDiv’); // array can contains string, number, object etc. var arr = new Array(’5′, 3, ‘hello’, 12, myDiv);   if (contains(arr, myDiv)) { alert(’Contains myDiv’); idMyDiv.innerHTML = … Continue reading

Posted in Javascript css html | Tagged , | Comments Off on JS multitype multi type array javascript