document.getElementById 获得数组
假如一个页面有很多个id位summary的input
<input name='summary' id='summary' type='text' />
<input name='summary' id='summary' type='text' />
<input name='summary' id='summary' type='text' />
<input name='summary' id='summary' type='text' />
怎么才能在js中获得summary的数组呢?
那么应该怎样用
document.getElementById( 'summary ')(我试过了,返回的不是一个数组)