Get value of inputs with Jquery

Discussion in 'jQuery' started by lam3r4370, Mar 6, 2010.

  1. #1
    I have 100 inputs with name - table[].
    How to get their value with jQuery,like $_POST['table'] ,as I do in PHP.
    I tryed
    $("input[name='table[]']").each(function() {
    	document.write($(this).val());
    	
    		
    });
    Code (markup):
    but I want to get them as an array.
     
    lam3r4370, Mar 6, 2010 IP