---
title: "how to force user to select drop down list item first before continue next in C#"  
description: "how to force user to select drop down list item first before continue next in C#"  
author: "Anonymous User"  
published: 2015-01-06  
updated: 2015-01-06  
canonical: https://www.mindstick.com/forum/12843/how-to-force-user-to-select-drop-down-list-item-first-before-continue-next-in-c-sharp  
category: "asp.net"  
tags: ["c#"]  
reading_time: 1 minute  

---

# how to force user to select drop down list item first before continue next in C#

for example of this [website](https://www.mindstick.com/articles/13110/why-copywriting-is-crucial-for-new-website-build), the quick ticket session. i need to force [users](https://www.mindstick.com/news/2244/issue-preventing-users-from-accessing-facebook-s-social-networking-platforms-has-been-resolved) to [select](https://www.mindstick.com/forum/160534/orderby-then-select-vs-select-then-orderby-performance) a movie first before select the Cinema

## Replies

### Reply by Anonymous User

You can use some jQuery magic to do this:

```
$(function() {    $('#ddlSelectCinema').prop('disabled',true);    $('#ddlSelectSession').prop('disabled',true);});
```

This code will disable the "Select Cinema" and "Select Session" drop downs. Then you need an event handler on the drop downs:

```
$(function() {    $('#ddlSelectMovie').change(function() {        $('#ddlSelectCinema').prop('disabled', false);    });    $('#ddlSelectCinema').change(function() {        $('#ddlSelectSession').prop('disabled', false);    });});
```

This will not hide it, but it will disable them. You might want to also add a CSS class called 'disabled' or something and apply and remove that class as you disable/enable the. This way you can style the drop downs and make them look disabled.


---

Original Source: https://www.mindstick.com/forum/12843/how-to-force-user-to-select-drop-down-list-item-first-before-continue-next-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
