I have an ASP .NET MVC 3 application and I am using Jquery to enhance user experience. I have a page where there is a state and county dropdown and the county dropdown is loaded based on state selected (using JQuery). Now I have certain users who have disabled JS and it is not loading.
Can anyone suggest a way to accomplish this (I am ready to redesign my page too if required).
Thanks in Advance.
jQuery /any javascript in your page won’t work if javscript is disabled in the browser. As javascript plays a major role in improving the user experience in today’s web applications, I would definitly add a Message to the user if javascript is disabled.
If you really want to make it work without javascript, you may submit your form (the user should click on the submit button) after selecting the Country from the dropdown. Your
POSTaction can read the selected country and get a list ofStatesand set that in your Mode/ViewModel and send it back to the View again. But this is not a user friendly option !. So many button clicks and Form submits. AH !!! . I would tell the user to enable javascript.