bootstrapValidator验证input的name属性有点怎么解决

代码如下:
$('#form1')
.bootstrapValidator({
message: 'This value is not valid',
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
cus.cname: {
message: 'The username is not valid',
validators: {
notEmpty: {
message: 'The username is required and can\'t be empty'
},
stringLength: {
min: 6,
max: 30,
message: 'The username must be more than 6 and less than 30 characters long'
},
/remote: {
url: 'remote.php',
message: 'The username is not available'
},
/
regexp: {
regexp: /^[a-zA-Z0-9_.]+$/,
message: 'The username can only consist of alphabetical, number, dot and underscore'
}
}
},

cus.cname: 这样写貌似不行啊,但是input的name属性确实又是cus.cname,大家有没有碰到过这种问题,点解。。
已邀请:

镭射头

赞同来自: happy_087

在线等啊,求大神

karsonzhang - http://www.v2st.com/

赞同来自: 镭射头

给字段名加上双引号
fields: {
"cus.cname": {
message: 'The username is not valid',
validators: {
notEmpty: {
message: 'The username is required and can\'t be empty'
},

要回复问题请先登录注册