orige-zz / jquery-bootstrap-modal-steps

A lightweight step by step modal for bootstrap
MIT License
30 stars 36 forks source link

How to disable the next button when the input field is empty #14

Open gopinath93 opened 6 years ago

gopinath93 commented 6 years ago

Hi,

How to disable the next button when the input field is empty and show the validation message

kevinpoy commented 6 years ago

//onkeyup if(field is empty){ //show validation $('#goal-setting-modal').find('.js-btn-step[data-orientation=next]').attr('disabled', true); }else{ $('#goal-setting-modal').find('.js-btn-step[data-orientation=next]').attr('disabled', false); }