lundi 2 mai 2016

Checkbox value doesnt show when a customer is clicked

I am echoing to my website possible checkbox values that are in a table JobChoose like this

<?php
$got = mysql_query("SELECT * FROM JobChoose");
$checkbox = '';
while ($row = mysql_fetch_assoc($got)) {
    $checkbox .= '<li><input type="checkbox" id="Jobselect" name="Job" value = "' . $row['Job'] . '">' . $row['Job'] . '</input></li>';
} ?> 

<?php echo $checkbox;?> 

When a checkbox is selected is inserted to a customer info. But when i am trying to to get selected value back nothing appears when i click to a customer although it appears in mysql database

echo "<td align='center' class='hidden'>". $row["Job"] ."</td>";

<script type='text/javascript'>
    $('#tabled').on('click', 'tr', function () {
        $("#Jobselect").val($(this).find("td").eq(19).html());
    });
</script>




Aucun commentaire:

Enregistrer un commentaire