tags:

views:

31

answers:

2
<li style="display: block;" class="selectlist-item">fsdafkds</li>

how can i disable a controller by class by jquery

+2  A: 

Your question isn't clear; you can't disable non-form field elements.

But if you want to select an element based on its class, here is how you can do that:

$('.selectlist-item')

Notice the dot before class name. This is similar to CSS actually.

More Info:

Sarfraz
+1  A: 

If you want to hide it using jQuery:

$('.classname').hide();

The . is the class-selector. Same as in CSS.

alopix