If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jun 2012
    Member #
    i need to validate my text box when i move from one text box to another...
    Can anyone help me.....

    I need like this....i need to change border color also....can anyone help me please?

    E-Commerce steps UI.jpg


  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Not from USA
    Member #
    2784 times
    The border colors can be done using CSS classes.
    input.failed {border: 1px solid red;}
    input.successful {border: 1px solid green;}

    The validation would be Javascript, but you're not going to find an answer to this since the validation steps will depend on the input you're trying to validate.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member SimplyWebsites's Avatar
    Join Date
    Jul 2012
    Member #
    You would want to do something like this: (This uses jQuery)

    <script type="text/javascript">
    if($(this).val() > 0){
    $(this).css('border','1px solid #00ff00');
    $(this).css('border','1px solid #ff0000');

    <input type="text" class="number_validate" name="textbox" onblur="validate()" />

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 09:49 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: