Hello i'm trying to get value of database i already have which is SenderDriver->total_trips and all great but i want to get specific id so i have to put it into onClick then it set the value from the database SenderDriver->total_trips This is the Code
<span onclick="readd( amounts);" data-target="#addMoneyModel"
data-toggle="modal" id=""><a
data-original-title="Add Money"
data-toggle="tooltip"
id="" data-placement="top"
class="btn text-white btn-sm btn-success menu-icon btn_detail action_btn"> <i
class="fa fa-money-bill"></i> </a></span>
Okay now the function i want the val change a specific text when it clicked but from the above code btw all this is in .blade.php
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script type="text/javascript">
function readd(){
$("input:text").val(amounts);
}
</script>
I tried a lot nothing working any help?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire