jQuery

11 views
Skip to first unread message

AiPdimi

unread,
Sep 10, 2012, 10:21:02 AM9/10/12
to web_desig...@googlegroups.com
سلام
کسی میدونه تو
jquery
چطور متن داخل
textbox
می گیرن
منظورم قسمت قرمز این کد که
#urname
نام ای دی همان تکست در فرم هست
$(document).ready(function() {
        $('#urname').on("focusout",function(){
            $.get('data.php', $(this).serialize(), function(data){
                if(data)
                {
                    $('#content').html("<h1 style='color:red;'>"+
                                $("#urname").text()+
                                " are NOT Avilable</h1>"
                            );
                }else{
                                    $('#content').html("<h1 style='color:green;'>"+
                                $("#urname").text()+
                                " are Avilable</h1>"
                            );
                }
 
            });                 
            return false;
        });
        $("#br").on("focusout",function(){
                $("#content").empty();           
            });
    });
Reply all
Reply to author
Forward
0 new messages