How to disable and enable a dropdownlist in Jquerymobile
Hello, I'm kinda new to Jquery mobile. I building a mobile app with asp.net mvc4 and using jquery moblie in the UI.
I have two dropdownlists and I want enable or disable one based on the selection of the previous one. How do I go about it.
I tried this earlier but it did not work.
- <script type="text/javascript">
- $(document).ready(function(){
-
- $("SelectedActionForUser").change(function () {
-
-
- if ($(this).val() == "3") {
-
-
- $("#SelectedEmployee").prop('disabled', false);
-
-
- }
- else {
- $("#SelectedEmployee").prop('disabled', true);
- }
- });
-
- });
-
- </script>