@Html.ActionLink("mor info","CityInfo",new{cityid = --getvalue()--},new {@class = "mbtn" })
I want to get Value Selected In Dropdownlist CityId With Jquery But I Can't Use JQuery Function in RouteValue
How to use JQuery Function in Routevalue? or How to Get selected CityId and Send To Action in Controller?
For example You can achieve this with jQuery function on dropdown value change event and setting element href attribute.
If You want, change
<select />
to@Html.DropDownListFor()
or@Html.DropDownList()
For more parameters You can for every dropdown set
class='myClass'
and different id. With it You should be able to use it as: