skip to Main Content

Using jquery POST request to save form in django

here my form.html in this form I'm use Django model form. <div class="container"> <form action="{% url 'add_product' %}" id="product_form" method="POST" enctype="multipart/form-data"> {% csrf_token %} <div class="row"> <div class="col-sm-12"> <label for="">{{form.code.label}} :</label> {{form.code}} <span id="error">{{form.code.errors | striptags }}</span> </div> <div class="col-sm-12">…

VIEW QUESTION

Remove css hover effect on click Jquery

This code seems not to work. The text stays blue on hover, but I want it to be red instead after clicking this text. Tried several actions, but none of them works $('.secondary').click(function() { $(this).unbind('mouseenter mouseleave'); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <style…

VIEW QUESTION
Back To Top
Search