0
フォームストップアニメーションをスライディングそのため、スライド形式にかの必須フィールド空
http://tympanus.net/Tutorials/FancySlidingForm/
を使用していますので、私は大きなフォームを持っていますが、必須フィールドがSTEP1
に空である場合、私はSTEP2にSTEP1をスライド停止する必要がありますそのためは私が...事前にこのよう
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');
});
おかげで機能を変更したかのいずれかのソリューション