skip to Main Content

Jquery ajax – How to get value of a tag inside modal popup

I have the following code and i want the value from a tag. <div class="modal fade show" id="myModal" tabindex="-1" role="dialog" aria- labelledby="myModalLabel" style="display: block;"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button> <h4 class="modal-title"…

VIEW QUESTION

How to get data from a JavaScript to controller and store it in the database – Phpmyadmin

I want to get the location from this JavaScript to the controller and store it in the database: var currPosition; navigator.geolocation.getCurrentPosition(function(position) { updatePosition(position); setInterval(function() { var lat = currPosition.coords.latitude; var lng = currPosition.coords.longitude; jQuery.ajax({ type: "POST", url: "myURL/location.php", data: 'x='…

VIEW QUESTION
Back To Top
Search