How can i use dropdown in table <td> tag

45
February 11, 2019, at 2:00 PM

I have an Inline editable Table which updates the Mysql table for the team group column I want to use the drop-down list.

But the table is saving all the value of Dropdown instead of the one i have selected

Below is the code I'm working with and few screenshot for your reference

  <td class="editable-col" contenteditable="True" col-index='5' oldVal ="<?php echo $res['TeamGroup'];?>" nowrap>
               <?php echo $res['TeamGroup'];?>
<select required>
  <option value="">None</option>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>
            </td>

READ ALSO
Devilbox laravel register page throws 502 but works after refresh

Devilbox laravel register page throws 502 but works after refresh

I have setup laravel on devilbox and I'm creating my first application using this tutorial: https://auth0com/blog/creating-your-first-laravel-app-and-adding-authentication/

36
How to save in multiple tables Laravel

How to save in multiple tables Laravel

I want to do insertData in both tables together using the Query Builder in the Laravel 57 framework

22
fetch data from sql into php array returns nothing

fetch data from sql into php array returns nothing

I'm trying to json_encode the data that was fetched from SQL, however when i stored it into PHP array, it didn't return any valueIs there any code that i am missing or are there limits to the array?

31