I want to get array data from a Input value in JavaScript. The Name for each selected one Name Like, I want to get The name 'John' Or i want to get the mail 'Doe'
This is PHP
$AllValue['1'] = array(
'Name' => 'John',
'Email' => 'john@gmail.com'
);
$AllValue['2'] = array(
'Name' => 'Doe',
'Email' => 'doe@gmail.com'
);
This is my HTML
<input type="text" class="" value="<?php echo $AllValue; ?>">
please help by give me that code
<script>
// please help by give me that code
</script>