高手们像这种情况怎么处理??谢谢
请问:下面的单选中,怎么在Javascript中判断选中的是第三项呢??
即我怎么可以知道选中的是第三项的“采购信息”呢??
谢谢。。。。。。。
<form name="form1" submit="aa.asp" method="post" target="_blank">
<td width="20">
<input type="radio" value="msg" name="otype" checked>
</td>
<td width="100"> 产品大全</td>
<td width="20">
<input type="radio" value="title" name="otype">
</td>
<td width="100">企业厂商</td>
<td width="20">
<input type="radio" value="msg" name="otype">
</td>
<td width="100">采购信息</td>
<td width="20">
<input type="radio" value="title" name="otype">
</td>
<input type="submit" name="Submit" value="FIC 搜索" class="input">
</form>
即我怎么可以知道选中的是第三项的“采购信息”呢??
谢谢。。。。。。。
<form name="form1" submit="aa.asp" method="post" target="_blank">
<td width="20">
<input type="radio" value="msg" name="otype" checked>
</td>
<td width="100"> 产品大全</td>
<td width="20">
<input type="radio" value="title" name="otype">
</td>
<td width="100">企业厂商</td>
<td width="20">
<input type="radio" value="msg" name="otype">
</td>
<td width="100">采购信息</td>
<td width="20">
<input type="radio" value="title" name="otype">
</td>
<input type="submit" name="Submit" value="FIC 搜索" class="input">
</form>
...全文
相关推荐
C# 中的??操作符浅谈
(??) 用于如果类不为空值时返回它自身,如果为空值则返回之后的操作
JS中??与||区别[项目代码]
本文详细解释了JavaScript中双问号??和双竖杠||操作符的区别。它们的共同点是语法结构相似,都是根据前面的值来决定取前面还是后面的值。双竖杠||在前面的值转为布尔值为false时(如undefined、null、false、空字符串和数值0)会取后面的值,否则取前面的值。而双问号??则仅在前面的值为null或undefined时才取后面的值,其他情况都取前面的值。因此,双问号??更适合用于不确定变量是否定义或赋值的场景。
c# 操作符?? null coalescing operator
?? "null coalescing" operator 是c#新提供的一个操作符,这个操作符提供的功能是判断左侧的操作数是否是null,如果是则返回结果是右侧的操作数;非null则返回左侧的操作数。
合并:合并运算符?? 为尼姆
合并:合并运算符?? 为尼姆
JS中的??运算符[源码]
在JavaScript中,??是一个逻辑运算符,称为空值合并运算符(Nullish Coalescing Operator)。它用于检查左侧的值是否为null或undefined,如果是,则返回右侧的值;否则返回左侧的值。与||运算符不同,??仅在左侧值为null或undefined时返回右侧值,而||会在左侧值为假值(如false、0、'等)时返回右侧值。这使得??在需要区分null/undefined和其他假值的场景中非常有用。文章通过多个示例详细解释了??的语法、行为、使用场景以及与||的区别,并提供了注意事项和总结。


