Answer the question
In order to leave comments, you need to log in
Why doesn't jquery work in flask?
jquery in flask not working.
Connected in html page
<script src="{{url_for('static', filename='assets/js/lib/jquery.min.js')}}" type="text/javascript"></script>
<script>
$('#btn-proudct-123').click(function() {
alert('test');
$('#myform').append('<input type="text" id="proruct-123" class="edit bk" name="product[]" value="Test" /></br>');
});
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question