skip to Main Content

Jquery ajax – I want to add more css property to my html element using Jquery means I dont want to remove the previous one just simply add more to it

Index.html <html> <head> <script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script> <!-- jquery-3.4.1.min --> <script type="text/javascript" src="custom.js"></script> </head> <body> <div class="epic" style="color:red">hello this is title</div> <div>hello this is title</div> <input type="button" placeholder="click it" value="click"> </body> </html> custom.js $( document ).ready(function($){ $(":button").click(function(){ $(".epic").attr("style","font-size:100px"); }); });…

VIEW QUESTION

Jquery ajax – ajax form submit event attached twice

I have form over pop-up and to submit this form I have write custom code form code over popup: <div id="add-role" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div id="bank-details-form" > <div class="card"> <div class="card-header card-header-text" data-background-color="rose">…

VIEW QUESTION
Back To Top
Search