Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#btnSubmit").click(function() {
- countryID = document.getElementById("Countries");
- productType = document.getElementById("ProductType");
- issuerID = document.getElementById("Issuer");
- var selectedCountryID = countryID.options[countryID.selectedIndex].value;
- var selectedProductType = productType.options[productType.selectedIndex].value;
- var selectedIssuerID = issuerID.options[issuerID.selectedIndex].value;
- alert(selectedCountryID);
- alert(selectedProductType);
- alert(selectedIssuerID);
- if (selectedCountryID != "" && selectedProductType != "" && selectedIssuerID != "") {
- alert("inside func");
- $.ajax({
- url: '/Home/Index?countryID=' + selectedCountryID + '&issuerID=' + selectedIssuerID + '&productType=' + selectedProductType + '&userName=&jobLink=&jobID=',
- type: 'POST',
- contentType: 'application/json; charset=utf-8',
- success: function(data) { alert(data); }
- });
- alert("outside post");
- }
- });
Add Comment
Please, Sign In to add comment