How to get data on Onpresskey event in JQuery?

............................................................

<head runat="server">
    <title></title>
   
<link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.js"></script>
<meta charset=utf-8 />

 <!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
    <style type="text/css">
        .style1
        {
            width: 100%;
            background-color: #FF99CC;
        }
        .style3
        {
            width: 439px;
        }
        .style5
        {
            width: 68px;
        }
        .style6
        {
            width: 36px;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $('#TextBox1').keyup(function () {
                $('#Label1').text($(this).val());
                //            $('#p1').text($(this).val());
            });
            $('#TextBox2').keyup(function () {
                $('#Label2').text($(this).val());
                //            $('#p2').text($(this).val());
            });
            $('#TextBox3').keyup(function () {
                $('#Label3').text($(this).val());
                //            $('#p3').text($(this).val());
            });
            $('#TextBox4').keyup(function () {
                $('#Label4').text($(this).val());
                //            $('#p1').text($(this).val());
            });
            $('#TextBox5').keyup(function () {
                $('#Label5').text($(this).val());
                //            $('#p2').text($(this).val());
            });
            $('#TextBox6').keyup(function () {
                $('#Label6').text($(this).val());
                //            $('#p3').text($(this).val());
            });
            $('#TextBox7').keyup(function () {
                $('#Label7').text($(this).val());
                //            $('#p3').text($(this).val());
            });
        });

</script>
 

</head>
.........................................................
Share:

No comments:

Post a Comment

Tuesday, 8 January 2013

How to get data on Onpresskey event in JQuery?

............................................................

<head runat="server">
    <title></title>
   
<link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.js"></script>
<meta charset=utf-8 />

 <!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
    <style type="text/css">
        .style1
        {
            width: 100%;
            background-color: #FF99CC;
        }
        .style3
        {
            width: 439px;
        }
        .style5
        {
            width: 68px;
        }
        .style6
        {
            width: 36px;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $('#TextBox1').keyup(function () {
                $('#Label1').text($(this).val());
                //            $('#p1').text($(this).val());
            });
            $('#TextBox2').keyup(function () {
                $('#Label2').text($(this).val());
                //            $('#p2').text($(this).val());
            });
            $('#TextBox3').keyup(function () {
                $('#Label3').text($(this).val());
                //            $('#p3').text($(this).val());
            });
            $('#TextBox4').keyup(function () {
                $('#Label4').text($(this).val());
                //            $('#p1').text($(this).val());
            });
            $('#TextBox5').keyup(function () {
                $('#Label5').text($(this).val());
                //            $('#p2').text($(this).val());
            });
            $('#TextBox6').keyup(function () {
                $('#Label6').text($(this).val());
                //            $('#p3').text($(this).val());
            });
            $('#TextBox7').keyup(function () {
                $('#Label7').text($(this).val());
                //            $('#p3').text($(this).val());
            });
        });

</script>
 

</head>
.........................................................

No comments:

Post a Comment

Popular

Total Pageviews

Archive