두 개의 텍스트 상자가 있습니다. 한 텍스트 상자의 값을 다른 텍스트 상자에 채우고 텍스트 상자에 입력 한 값은 숫자 여야합니다.숫자 전용 텍스트 상자 채우기 및 확인
/* for numeric value in one textbox and populate in another*/
function onType(evt){
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57)){
return false;
}
else{
document.getElementById("marketValuationId").value=document.getElementById("valuationId").value;
return true;
}
어떤 문제가 있습니까? – codebox
그래서 일어나는 정확한 문제는 무엇입니까 ..이 onType()은 텍스트 상자에 붙어 있습니까? – bhatanant2
'event'도'evt'이어야합니다 –