javascript - return null document.getElementsByTagName -
ihave simple ul element in webpage : <div id="jqueryftd_demo" class="demo"><ul class="jqueryfiletree" style=""> <li class="directory collapsed"><a href="#" rel="/samplefolder/a/">a</a></li> <li class="directory collapsed"><a href="#" rel="/samplefolder/b/">b</a></li> <li class="directory collapsed"><a href="#" rel="/samplefolder/c/">c</a></li> <li class="directory collapsed"><a href="#" rel="/samplefolder/d/">d</a></li> <li class="file ext_accdb"><a href="#" rel="/samplefolder/sampledbfile.accdb">sampledbfile.accdb</a></li> <li class="file ext_txt"><a href="#" rel="/samplefolder/sometext.txt">somete