How can I get the selected item (from a dropdownlist) to then be sent to an Action in my controller.
Here's the script I have that takes the selected value from dropdownlist, but how do I send this to my Action Result as a parameter?
View:
<script>
//To get selected value an text of dropdownlist
function SelectedValue(ddlObject) {
//Selected value of dropdownlist
var selectedValue = ddlObject.value;
//send selectedValue to Action in controller?
}
</script>
Controller:
public ActionResult GetMatterRef(string param)
{
strParam = param;
}
Thanks