var util = {
onlyNumber : function (obj){
obj.value = obj.value.replace(/[^0-9\.]/g,'')
}, numberAndHyphen : function (obj){
obj.value = obj.value.replace(/[^0-9-\.]/g,'')
}
};
html+=' <td id="subScorWrap'+mainIdx+'"><input type="text" id="subScor'+mainIdx+'_'+subIdx+'" class="subScor'+mainIdx+'" value="'+list[i].allt_scor+'" maxlength="2" style="overflow-y:hidden;width:100%; height:36px;" onkeyup="util.numberAndHyphen(this);"></td>';
'Developers' 카테고리의 다른 글
CLOB 변환 Oracle CLOB to String in Java (0) | 2017.08.17 |
---|---|
JAVA 에서 HTML TAG 제거 (0) | 2017.08.17 |
high chart 차트 그리기 (0) | 2017.06.01 |
Ajax Loading (0) | 2017.05.29 |
js object(객체, 구조체) 함수, 변수 (0) | 2017.05.24 |
댓글