[jQuery] (validate) conditional statements in .validate

2009-08-28 Thread jckos
Hi, I would like to make fields required based on a country selection in a drop down. I tried a few variations of the following but can't get it to work. Is there another way of going about this? $(#country).change(function(){ var ctry= $(#country).val(); if ( country

[jQuery] (validate) hide label when empty

2009-08-25 Thread jckos
I'm trying to find the option that hides the default label tag if there is no message displayed in it. Can someone help? I want to display a message at the top of the form when the input fields are empty, but display no text message. Only specific fields have messages associated with them

[jQuery] Re: (validate) multiple error error messages per input

2009-07-29 Thread jckos
name property specified on your html. input type=text id=username/input should be input type=text id=username name=username/input On Jul 28, 8:26 am, jckos johncar...@gmail.com wrote: Hi, If I  focus on a field multiple times or submit the form multiple times, I the script adds

[jQuery] (validate) multiple error error messages per input

2009-07-27 Thread jckos
Hi, If I focus on a field multiple times or submit the form multiple times, I the script adds multiple error messages per field, both valid and error classes, depending on the data entered. Any suggestions? Thanks, John

[jQuery] (validate) IE6 odd focus behavior

2009-07-24 Thread jckos
I'm using the validate plugin on a form and in IE when I click right above the second required field the cursor focus is between the label and the form field. It looks like you are typing outside of the form, in between the / label and input. I validated the html of the form. It looks like it

[jQuery] Better way to trim whitespace from input?

2009-05-13 Thread jckos
Hi, I need to transform all characters entered in an input field to uppercase and trim trailing whitespace. This script works, but I'm wondering if there's a better way to do it. script $(document).ready(function(){ $(input).keyup(function (e) {

[jQuery] Re: Better way to trim whitespace from input?

2009-05-13 Thread jckos
a toUpperCase using JavaScript. But other than that, looks about as lean as you can get it. andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of jckos Sent: Wednesday, May 13, 2009 11:53 AM To: jQuery (English) Subject: [jQuery] Better

[jQuery] regex backreference with text()?

2009-05-11 Thread jckos
Hi, I'm looking to change the text in an element, but I want to keep one of the values in the string the same. Basically I have an in stock number generated by the JSP that is dynamic but I want to change the message arounn the numberic value. For example, I'd like to change 1 left in stock

[jQuery] Re: regex backreference with text()?

2009-05-11 Thread jckos
{ $ (#myid).text(t.replace(t,t+' items remaining'); } On Mon, May 11, 2009 at 5:52 PM, jckos johncar...@gmail.com wrote: Hi, I'm looking to change the text in an element, but I want to keep one of the values in the string the same.  Basically I have an in stock number  generated by the JSP