我試圖從三個輸入文本框中獲得價值。但我希望這三個值在一次或數組form.I如何得到? 這裏是我的HTML的我怎樣才能從三個輸入文本框在jQuery時間獲得價值
<input style='display:none' value='http://localhost/JSG/upload/Hydrangeas6.jpg' class='imgstr' name='imgstr[]'type='text>
<input style='display:none' value='http://localhost/JSG/upload/Jellyfish4.jpg' class='imgstr' name='imgstr[]'type='text'>
<input style='display:none' value='http://localhost/JSG/upload/Koala1.jpg' class='imgstr' name='imgstr[]'type='text'>
jquery-
var images = $('.imgstr').val(); //Get value from text
感謝阿倫先生。 – Secure 2014-12-05 12:52:18