$("#Selection").change(function () {
var text = $("#Selection option:selected").text();
alert(text);
var valueSelected= this.value;
alert(valueOfLanguage);
var url = 'OpenServerQuote Html.SelectorLink("' + valueSelected+ '", "[' + text + ']", "' + text + '", null) CloseServerQuote';
var hrefValue = $(url).attr("href");
alert(hrefValue);
});
I need to pass the value and text of dropdown to a HTML helper method and get the the result. But when I pass the value to html helper as shown above, instead of values valueselected string is passed. Any pointers how to proceed on this.
*OpenServerQuote = <%
CloseServerQuote = %>