Prindol

DESIGN, HTML5, CSS3, DOM, Jquery, JSON, Actionscript2/3, Linux, IIS

You are not logged in.

#1 2012-10-04 14:18:18

skydown
Administrator
Registered: 2011-07-25
Posts: 315

[JAVASCRIPT] test()

    if(!/[0-9\+\-]/.test(ths.value)){
                 alert("숫자와 -만 입력 하세요")
            ths.value = ""
            ths.focus();
    }

넘어온 입력값을 비교하여 다른 값일때 입력값 지우고 포커스 유지

Offline

Board footer

Powered by FluxBB