vendredi 23 février 2018

How to pass looping value attribute from the

I'm using the laravel framework. I populated my dropdown list with data from my database.

<select class="form-control" id="username" name="username" onchange="somerandonfunction(blah)">     
            <option value="" selected>Select User</option>
            @foreach($getUsers as $list)
            <option value="" ></option>
            @endforeach

        </select>

I want to be able to pass the value of the option clicked to a function in the onchange attribute in the select> tag. Is there a way to do this?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ENUVEe
via IFTTT

Aucun commentaire:

Enregistrer un commentaire