www.webdeveloper.com
Results 1 to 2 of 2

Thread: onchange used insted of keyup

Hybrid View

  1. #1
    Join Date
    Mar 2014
    Posts
    3

    onchange used insted of keyup

    I want to need of onChange() insted of Keyup() but it not working.
    Code: Check Email already exist in database or not


    $.noConflict();
    jQuery(document).ready(function(){
    jQuery("#email").keyup(function(){

    var name = jQuery("#email").val();

    if(name=="")
    {
    jQuery("#disp").html("");
    }
    else
    {

    jQuery.ajax({
    type: "POST",
    url: "user_check.php",
    data: "name="+ name,
    success: function(html){

    jQuery("#disp").html(html);

    }
    });
    return false;
    }

    });

    });

    If you have solution then suggest me.

    Thank you.

  2. #2
    Join Date
    Mar 2005
    Location
    Behind you...
    Posts
    862
    There doesn't appear to be any issues with your code so it seems like all you need to do is replace 'keyup' with 'change' (not onChange).
    "Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles