Page 1 of 1

processing a php array in javascript

Posted: Mon Jan 11, 2021 3:43 pm
by daybreaker
Hi there,

I have several lines of html like the below in a form....

<select onkeydown="return event.key != 'Enter'" name="itemline[4][inventoryitem]"><option value=....

can anyone tell me how to access this information by using javascript to access this array item.

I want to be able to check in javascript the form values using onsubmit="checksubmitvalues()" etc before handing it over to php server side to process the data into mysql database.

Any help would be much appreciated.

Thanks