What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-30 18:20:09
jquery check if select option is selected
$(document).ready(function(){ $(".yes").hide(); $(".no").hide(); $("#existing-subscriber").change(function(){ if ( $(this).val() == "Yes" ) { $(".yes").show(); $(".no").hide(); ... Add solution -
PHP 2022-01-29 09:05:07
autocomplete jquery php
// AJAX call for autocomplete $(document).ready(function(){ $("#search-box").keyup(function(){ $.ajax({ type: "POST", url: "readCountry.php", data:'keyword='+$(this).val(), beforeSend: function(){ $("#sear... Add solution -
Javascript 2022-01-23 08:41:05
ajax call to load a page on scrolling
$(document).ready(function(){ $(window).scroll(function(){ var position = $(window).scrollTop(); var bottom = $(document).height() - $(window).height(); if( position == bottom ){ var row = Number($('#row').val()); var allcount = Number(... Add solution -
Javascript 2022-01-23 01:11:00
send json post ajax javascript
$.ajax({ url: 'users.php', dataType: 'json', type: 'post', contentType: 'application/json', data: JSON.stringify( { "first-name": $('#first-name').val(), "last-name": $('#last-name').val() } ), processData: fals... Add solution -
PHP 2022-01-22 12:55:08
ajax request for inserting php data to db
<!DOCTYPE html> <html> <head> <title>Insert data in MySQL database using Ajax</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <scrip... Add solution -
Javascript 2021-11-21 06:37:33
jquery detach and appendto
var alldivs = $("#first,#second,#third,#fourth"); var wrapper = $(".operation"); alldivs.hide(); var divs = $(alldivs).detach(); jQuery("input[name='gentype']").change(function () { var label = $(this).val(); ... Add solution -
Other 2021-11-20 11:57:18
how to get value from input field while typing
$("#txt").keyup(function(event) { text = $(this).val(); $("div").text(text); }); $('#txt').focusout(function(){ if($(this).val().length < 20){ alert(" Minimum 20 Words required...!! "); } }) Add solution