close

//輸入框框
<input id="inputFactoryLabelInVirtualFullLabelCode" type="text"  />
//透過ID取的 前端頁面的value
var FullLabelCode = document.getElementById("inputFactoryLabelInVirtualFullLabelCode").value;

///透過#查詢ID是ShippingFormTable的Table使用is來處理判斷
var ch = $("#ShippingFormTable tr").is("#"+FullLabelCode+"");

//判斷是否有
if (ch) {
                //提示音效
                var sound = document.getElementById('Audio');
                sound.play();
                document.getElementById("inputFactoryLabelInVirtualFullLabelCode").focus();
                document.getElementById("inputFactoryLabelInVirtualFullLabelCode").select();
                alert("重複盤讀,請確定輸入是否正確?");
                return;
            }

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 萌新-工程師 的頭像
    萌新-工程師

    工程師的雜記

    萌新-工程師 發表在 痞客邦 留言(0) 人氣()