How i can use ajax JQuery and VBscript

I was trying to select a country from the drop down list and use ajax to get a single data from SQL server using VBScript in the plugin

My test Code is like this

<html>
<head>
    <title></title>
</head>
<body>
    <table id="QT3" style="width:98%;">    
         <tr>
 <td style="width:34%;" class="LabelCell">Country:</td>
           <td style="width:64%;" class="DataCell">
              <select name="COUNTRY" id="COUNTRY" style="width:60%;" 	
                 <option value="1">Angola</option>
                 <option value="2">Brazil</option>
  <option value="3">Canada</option>
   			  <option value="4">Italy</option>
              </select>
            </td>
          </tr>
          <tr>
              <td style="width:34%;" class="LabelCell">IGA Models:</td>
              <td style="width:65%;" class="DataCell"> 
                  <input id="IGATYPE" name="IGATYPE" type="text" />
              </td>
          </tr>
              
<script type="text/javascript">
    function GetMODEL() {
        V1 = document.getElementById("COUNTRY").value;
    $.ajax({
		type: "POST",
		url: "../FITYPE-T.vbs",
		data: { 'Country': V1, 
		        'ACTION': 'MODEL'
		      },
		async: true,
		cache: false,
		success: function(data) {
			$('#IGATYPE').val(data);
		}
	});
   }
   
    </script>
</body>
</html>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.