简要解释我的程序:
我有 3 个选择框
如果用户在第一个框中选择的值是 2 并且用户在第二个框中选择的值是 3(选项值),那么第三个选择框应该显示一个数组。
此代码不起作用,但显示了一个想法:
if ($('#firstbox').click(function() { ($(this).val() == '2'); } &&
$('#secondbox').click(function() { ($(this).val() == '3'); }) {
// Array Display here (not included the coding here, because there is no issue with this coding.. seems working fine)
}
我需要有关 if 语句和 && 操作中包含的代码的帮助,以检查表达式。