Search the web
Sign In
New User? Sign Up
validation · Techniques for HTML form validation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
style does not want to behave   Message List  
Reply | Forward Message #420 of 427 |
Re: style does not want to behave

there is an expectation that you have valid non-null, non-empty
attribute values:

<input ... required="required" ...>

--- In validation@yahoogroups.com, "ottster35" <ottster35@...> wrote:
>
> For some reason I can't get the field to be the same. I've
> setup .required style to the way I wanted to appear, but if you did
> not enter the right zipcode and submit the form it refreshes back to
> the big grey field. Does anyone have a solution?
>
> Here is my style type:
>
> .required {font-family:verdana;font-size:6.5pt; border: 1px solid
> #064b86; font-family: Verdana, Arial, Helvetica, sans-serif; font-
> size: 10px; background: #FFFFFF !important}
>
> Here is my input field:
>
> <td><INPUT name="mailingzip" type="text" class="textfield"
> id="mailingzip" size="30" required regexp="^\d{5}(\-?\d{4})?$"
> filter="[0-9-]" msg="Please enter a valid ZIP Code"></td>
>





Tue Jun 10, 2008 5:15 pm

somematt
Offline Offline
Send Email Send Email

Forward
Message #420 of 427 |
Expand Messages Author Sort by Date

For some reason I can't get the field to be the same. I've setup .required style to the way I wanted to appear, but if you did not enter the right zipcode and...
ottster35
Offline Send Email
Jun 10, 2008
3:43 pm

there is an expectation that you have valid non-null, non-empty attribute values: <input ... required="required" ...>...
somematt
Offline Send Email
Jun 10, 2008
5:15 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help