I have created the code to show a div only once a category is selected from a dropdown,
I have made the div display:none
in css and showed it in jquery using this code and its working,
$(' select[name=catId]').change(function(e){
if ($(' select[name=catId]').val() == '32'){
$('#photo-upload').hide();
}else{
$('#photo-upload').show();
}
});
But this way its working for the option value 32 , but i want it to work for many values, I have tried like this but it dont work
$(' select[name=catId]').change(function(e){
if ($(' select[name=catId]').val() == '32' '45' 67' 89' 122'){
$('#photo-upload').hide();
}else{
$('#photo-upload').show();
}
});
Please guide me on how to make it hide for the other values too not just 32 , now its working for me for just one value.
UPDATE: This is my html structure
<select name="catId" id="catId">
<option value="1">England</option>
<option value="2">Russia</option>
<option value="3">Antartika</option>
<option value="4">Maldives</option>
<option value="32">Alaska</option>
<option value="45">Seychelles</option>
<option value="67">Georgia</option>
<option value="89">Honduras</option>
<option value="7">Lebanon</option>
<option value="8">Switzerland</option>
<option value="122">Germany</option>
</select>
<div id="photo-upload">photo uploader here</div>
Here is the fidlle demo: http://jsfiddle.net/Bk54E/