I am using the following code
function test()
{
GetAttributesForSelectedControlType('Phone Number');
}
function GetAttributesForSelectedControlType(questionType) {
alert(questionType);
$.ajax({
url: '/Wizards/GetAttributesForSelectedControlType/' + questionType,
type: "GET",
contentType: "application/json",
success: function (result) {
alert('success');
}
});
}
PLEASE NOTE: QUESTIONTYPE is a STRING value and not any type..
The issue is that in the controller, I m getting a hit on "GetAttributesForSelectedControlType"
function but the parameter value is coming null.
I am sending string in questionType
.
any ideas on this?