help

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • kiran83
    replied
    Originally posted by kushal49
    I think you should use RegularExpressi onValidator for the same...
    this will also work client side.


    please send javascript code for the above example.

    Leave a comment:


  • srikanth reddy
    replied
    Hai Baby This Is only Possible in java script.........


    Note:- Text Box Id======== t1


    <script>
    function number()

    {

    var num=document .getElimentById ("t1").value ;


    if(num==" ")
    {
    alert(" Please Enter Number ");
    num.focus(true) ;
    num.select(true );
    }


    else if(isNaN(num))
    {
    alert("Please enter proper number ");
    num.focus(true) ;
    num.select(true );

    }

    }



    Note:-- Button Propeties ===== Onclientclick ===put ==Function name


    exaple:-- Onclientclick=n umber()

    Leave a comment:


  • kushal49
    replied
    I think you should use RegularExpressi onValidator for the same...
    this will also work client side.

    Leave a comment:


  • kiran83
    started a topic help

    help

    i am design a web form in asp.net with c# ,in this form some textboxes is there ,in first text box it must accept numbers but not characters , Blank spaces and special characters how to validte in client side through javascript and also cursur position should be in first textbox..
Working...