Below is my code,I want to get values of p_id by using it's name. As i am new to javascript,please help me.
<form>
<input name="p_id[]" value="0"/>
<input name="p_id[]" value="1"/>
<input name="p_id[]" value="2"/>
</form>