Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

pass multi variable in ajax

function dateRangeFunction() {
        var range1 = $('range1').val;
        var range2 = $('range2').val;

        if(range1 == null || range1=="") {
            alert("Please Select A Date To Search From");
            return;
        }
            $.ajax({
               type  : 'GET',
                url  : 'daterangedetails.php',
                data : {pt:'7',rngstrt:range1, rngfin:range2},
                success: function (data) {
                document.getElementById('rangeDetails').innerHTML = data;
                }
            });
        }
Comment

PREVIOUS NEXT
Code Example
Javascript :: python parse single quote json 
Javascript :: select2 find option by text 
Javascript :: using bootstrap with react 
Javascript :: javascript mouse over and mouse enter 
Javascript :: array.from foreach 
Javascript :: jquery select html element 
Javascript :: full text search all string fields in the index mongodb 
Javascript :: react hooks componentdidmount 
Javascript :: python append to json file 
Javascript :: unidirectional data flow 
Javascript :: check href javascript 
Javascript :: javascript get element by id and class 
Javascript :: javascript combobox 
Javascript :: javascript swap variables 
Javascript :: javascript size array 
Javascript :: angular get device information 
Javascript :: momentjs display timezone 
Javascript :: jqeury input checkbox listener not working 
Javascript :: auto import vscode not working 
Javascript :: create dynamic element in javascript 
Javascript :: find common characters in two strings javascript 
Javascript :: js object keys 
Javascript :: op in sequelize 
Javascript :: javascript hypot 
Javascript :: convert inches to feet javascript 
Javascript :: js for 
Javascript :: react native toast message 
Javascript :: javascript every 
Javascript :: innertext js 
Javascript :: export default react 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =