What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-12 15:59:12
jquery dynamic row number not working properly
$(function() { function numberRows($t) { var c = 0; $t.find("tr").each(function(ind, el) { $(el).find("td:eq(0)").html(++c + "."); }); } $("#add-service-button").click(function(e) { e.pre... Add solution -
Javascript 2021-11-12 05:08:13
mysqli_real_escape_string use with ajax
jQuery(document).ready(function($){ // hide messages $("#error").hide(); $("#sent-form-msg").hide(); // on submit... $("#contactForm #submit").click(function() { $("#error").hide(); ... Add solution -
Other 2021-11-11 22:57:13
wordpress required post admin title field
/** ADD Validation for title */ function force_post_title_init() { wp_enqueue_script('jquery'); } function force_post_title() { echo "<script type='text/javascript'>\n"; echo " jQuery('#publish').click(function()... Add solution -
Html 2021-11-11 11:56:17
html select option change other select option
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <select id="type"> <option value="item0">--Select an Item--</option> <option value="item1... Add solution -
Javascript 2021-11-11 01:22:09
change color of input if submit clicked and input is empty
HTML : Text <input type="text"> <button>Click Me</button> -------------------------- JQuery : $("button").on("click",function(){ if($("[type='text']").val() == null){ $(this).css("... Add solution -
Javascript 2021-11-10 08:48:25
how to execute something after ajax call
BY LOVE, 1- "beforeSend" event used to execute something before ajax call 2- "complete" event used to execute something after the ajax called successfull. $.ajax({ url: ' @Url.Action("AttendanceUpdateLate&quo... Add solution