git.schokokeks.org
Repositories
Help
Report an Issue
bibweb.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
3a6b9e8
Branches
Tags
master
bibweb.git
assets
frischsaft.js
Erste Version, die über die API speichert
Bernd Wurst
commited
3a6b9e8
at 2020-06-06 20:24:13
frischsaft.js
Blame
History
Raw
$(function () { $('#details-frischsaft').hide(); $('#submit').prop('disabled', true); $('#btn-frischsaftja').click( function ( event ) { $('#btn-frischsaftja').removeClass('btn-default'); $('#btn-frischsaftja').addClass('btn-primary'); $('#details-frischsaft').show(); $('#frischsaft').focus(); event.preventDefault(); }); $('#frischsaft').on('input', function () { val = parseInt($(this).val(), 10); if (val > 0 && val <= 150) { $('#submit').prop('disabled', false); } else { $('#submit').prop('disabled', true); } }); });