Help with compare values statement
Is there a better way I can write this statement? I want to check if the ID is any of these.
- var cat = $("select#category").val();
if (cat == 23 || cat == 24 || cat == 25 || cat == 41 )
- {$("select#lamp").html("<option>Some Category</option>");}
- else {
$("select#lamp").html(data);}