|
@ -449,6 +449,11 @@ function submitForm(){
|
|
function bindEvents(){
|
|
function bindEvents(){
|
|
//监听表单数据信息变化
|
|
//监听表单数据信息变化
|
|
$("#question_form").on("change", "input", function(){
|
|
$("#question_form").on("change", "input", function(){
|
|
|
|
//先判断数字键盘不能输入负数
|
|
|
|
var textType = $(this).attr("type");
|
|
|
|
if(textType == "number"){
|
|
|
|
this.value = this.value.replace(/\-/g,"");
|
|
|
|
}
|
|
checkBtnEnable();
|
|
checkBtnEnable();
|
|
|
|
|
|
var name = $(this).attr("name");
|
|
var name = $(this).attr("name");
|
|
@ -473,6 +478,12 @@ function bindEvents(){
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
$("#question_form").on("keypress", "input[type=number]", function(event){
|
|
|
|
if(event.keyCode == 45){
|
|
|
|
event.preventDefault();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
//监听下拉框的变化
|
|
//监听下拉框的变化
|
|
$("#question_form").on("change", "select", function(){
|
|
$("#question_form").on("change", "select", function(){
|
|
checkBtnEnable();
|
|
checkBtnEnable();
|