0
我有一個大表格,以便爲正在使用滑模滑模停止動畫,如果必填字段爲空
http://tympanus.net/Tutorials/FancySlidingForm/
,但我需要停止滑動第一步,如果強制場第二步是在第一步
空的,我已經提前更改的功能這樣
function validateStep(step) {
if (step == fieldsetCount) return;
var error = 1;
var hasError = false;
$('#formElem').children(':nth-child(' + parseInt(step) + ')').find(':input:not(button)').each(function() {
var $this = $(this);
var valueLength = jQuery.trim($this.val()).length;
if (valueLength == '') {
hasError = true;
$this.css('border-color', '#f8bcc2')
// here i added one function
$('#steps').each(function() {
// alert('hhh');
marginLeft: '0' + 'px'
}
);
// $('#steps').css('margin-Left', '0')
}
else
$this.css('border-color', '#8DC440');
});
謝謝...如果任何解決方案