vbスクリプト関数をjavascriptに変換しています。
If oElement.type = "text" Or oElement.type = "textarea" Or oElement.type = "checkbox" Or oElement.type = "select-one" Or oElement.type = "button" Then
vbscript行について変換する必要があります。次のソリューションを使用すると、「textarea」、「select-one」、および「button」に対してスクリプトエラーが発生します。これは「text」および「checkbox」に対して正常に機能します。
$("#frmOrder").children().each(function () {
var child = $(this);
// type checking for textarea,select-one,button is not working.
if (child.is(":text") || child.is(":checkbox")) {
if(Number(child.attr('tabindex')) >= nIndex) {
child.attr('tabindex', child.attr('tabindex')+ <%=nChemIndexIncrement%>);
}
}
});
誰かが私がこの問題を解決するのを手伝ってくれる?