[jQuery] Re: Validate textbox (required=true) on combobox selected value

2009-06-26 Thread ciupaz
Perfect, thank you all. Luis

[jQuery] Validate textbox (required=true) on combobox selected value

2009-06-24 Thread ciupaz
Hi all, I have to validate a textbox if the user select a particular value in a combobox. For example, if the user select the "Specify new color" in the following combobox: Specify new color Red Green Blue White Black I have to validate the following

[jQuery] Redirect to another page on selected option value

2009-06-23 Thread ciupaz
Hi all, having a select option: ---Insert New User--- Mark Ted on the click of the input=Submit, if is selected "Insert New User", how can I redirect the user to another page (.aspx, .ascx, .html, etc) where he can insert the new values? Thanks in advance. Luis

[jQuery] Two different statement to access at the same tag

2009-06-17 Thread ciupaz
Hi all, what's the difference between writing these 2 statement for the same input checkbox: 1) input:checkbox[name=check]' 2) #check Thanks in advance. Luis

[jQuery] Re: Change page on selected combo value

2009-06-16 Thread ciupaz
You're right, by the way, the pages are .ascx pages, ma they lived "alone", like .aspx pages (they're not embedded in .aspx pages). And the second page where redirect the user in NewUser.ascx (or .aspx, it all the same). Thanks for precisation. Luis

[jQuery] Re: Change page on selected combo value

2009-06-16 Thread ciupaz
So putting value="NewUser.ascx" in the tag? Luis

[jQuery] Change page on selected combo value

2009-06-16 Thread ciupaz
Hi all, I have an .ascx page with a populated combobox: ---New User--- Ted Wilson Katy Bruce I need that when the user select "New User" he will be redirected to another page where he can insert the new user's value. Ho can I accomplish this? Thanks in advance. Lu

[jQuery] Re: Hide button based on combo value

2009-06-16 Thread ciupaz
Perfect, thank you very much Waseem. Luis

[jQuery] Hide button based on combo value

2009-06-16 Thread ciupaz
Hi all, I have a select option like this: Select a color Red Green Blue White Black and a button: How can I hide the button is the combo has "Select a color" selected, and show the button when the user select a color? Thanks in advance. Lui

[jQuery] Read values from another pages

2009-06-15 Thread ciupaz
Hi all, using this plugin: http://docs.jquery.com/Ajax/jQuery.post how can I read the values from the other page? For example, using: $.post("test.htm", { name: "John", time: "2pm" } ); in the page test.htm how can I read these value and setting some label? Thanks in advance. Luis

[jQuery] Re: Change form action based on button clicked

2009-06-12 Thread ciupaz
Thanks, it's work, and how can I recover the input text value, without using the querystring? Luis

[jQuery] Change form action based on button clicked

2009-06-12 Thread ciupaz
Hi all, I have a form like this: Name: how can I change my action form so the form goes to Page1.htm with click on button1 and goes to Page2.htm to click on button2, and mantein the value inserted in textbox "name"? Thanks a lot. Luis

[jQuery] Set MinValue for textbox of datetime

2009-06-11 Thread ciupaz
Hi all, how can I set a minimun value of type datetime for a textbox? Thanks in advance. Luigi

[jQuery] Validate textbox if another textbox is filled

2009-05-28 Thread ciupaz
Hi all, how can I validate a textbox only if another textbox is filled (by the user)? I'd like to make "required" txtValue only if the user write something in txtControl. Has anyone ideas? Thanks in advance. Luis

[jQuery] Validate textbox on particulare selected combo value

2009-05-27 Thread ciupaz
Hi all, I have a select (combobox) like this: ADMIN User OTHER (specify) and a textbox like: I'd like to validate the textbox if the selected choice is 'Other'. I'm trying this code: $(document).ready(function() { $('#txtOther').hide(); $('#role').change

[jQuery] Validate between textboxes

2009-05-27 Thread ciupaz
Hi all, having 3 textboxes, how can I validate to make one of them required if the other two are not compiled by the user? Thanks in advance. Luis

[jQuery] Re: Make textbox visible if checkbox is selected

2009-05-27 Thread ciupaz
Perfect, thank you heohni. L

[jQuery] Make textbox visible if checkbox is selected

2009-05-27 Thread ciupaz
Hi all, having a simple textbox: and a checkbox: how can I make the textbox visible if the user select the checkbox? Thanks in advance. Luis

[jQuery] Re: Validate selectedValue in a combobox

2009-05-26 Thread ciupaz
I have created the file jquery.validateCopy.js and added with: in my HEAD section. Than I write: jQuery.validator.addMethod("GetValue", function() { return true; }, jQuery.format("Please enter the correct value")); in it. Then I modify it with: city: { required: GetV

[jQuery] Re: Validate selectedValue in a combobox

2009-05-26 Thread ciupaz
I must write it in the jquery.validate.js file?

[jQuery] Re: Validate selectedValue in a combobox

2009-05-26 Thread ciupaz
Yes, exactly, and I'm trying this custom method: function GetCityValue() { var value = $('#city').val(); if (value == -1) { return true; } else { return false; } } and .. city: { required: GetCityValue()

[jQuery] Re: Validate selectedValue in a combobox

2009-05-26 Thread ciupaz
Thank you Jorn, now with the "name" attribute it's working. A simple question. For business rules I have to give the value "-1" to the "Select the city" option. Like this: Select a city Milan Turin Rome

[jQuery] Validate selectedValue in a combobox

2009-05-26 Thread ciupaz
Hi all, I have a simple combobox like this: Select a city Milan Turin Rome Venice and a validation rule like this: $('form#myForm').validate({ rules: { city: {

[jQuery] Re: Validate on combobox

2009-05-25 Thread ciupaz
Perfect, thank you very much Jorn. Luigi

[jQuery] Autoselect a checkbox on user's input value

2009-05-25 Thread ciupaz
Hi all, I have two checkboxes like these ones: Internal (up to DN 40) External (over DN 40) and a textbox like this: Insert the DN number: I'd like a sort of validation that when the user insert a DN number greater than 40, the checkbox "external" will be automatically selected (wit

[jQuery] Validate on combobox

2009-05-22 Thread ciupaz
Hi all, I need to validate a combobox if the user doesn't make a choice. My combo is: null utenza1 utenza2 and I'm trying this code: rules: { utenza: { required: "#utenza[selectedValue=-1]" } }, but it doesn't work. How could fix it?

[jQuery] Re: Validate textbox on at least one checkbox selected

2009-05-22 Thread ciupaz
Anyone has ideas?

[jQuery] Re: Validate textbox on option selected value

2009-05-21 Thread ciupaz
A little adding: if I'd like to make required if the selected index is *both* 1 and 2 (for example), how can I make it? Luigi

[jQuery] Re: Validate textbox on option selected value

2009-05-21 Thread ciupaz
It's working in that way Jorn. Thanks a lot. Luigi

[jQuery] Validate textbox on selected value in a combobox

2009-05-21 Thread ciupaz
Hello, how can I validate several textbox basing on selected combobox? For example, having this combo: Please select CA PR PROV I'd like to make required the first textbox if the user select the first value, and so on. I have to change my validate plugin: myFir

[jQuery] Validate textbox on at least one checkbox selected

2009-05-20 Thread ciupaz
Hi all, I have a textbox and 2 checkbox, and I'd like to validate the textbox if at least one of the two checkbox is selected. If is just one checkbox, I'll write: myTextboxl: { required: '#myFirstCheckbox:checked' } but in the case of 2 checkbox, how can I s

[jQuery] Negate a validation checkbox

2009-05-20 Thread ciupaz
Hi all, I have checkbox that if the user check it, the near tetxbox is no more required. In the "normal" case, I have: myTextbox: { required: "#myCheckbox:checked" }, How can I negate this? Simply speaking, get the tetxbox no required if the checkbox is check

[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread ciupaz
How can I make this Jorn? Luigi On May 18, 10:42 am, Jörn Zaefferer wrote: > select-options don't have a checked property. You have to fix the > selector "#AltraVia:checked". > > Jörn > > > > On Mon, May 18, 2009 at 10:33 AM, ciupaz wrote: > &g

[jQuery] Validate textbox on option selected value

2009-05-18 Thread ciupaz
Hi all, I have this validate code to validate a textbox if the user select a combo value: $(document).ready(function() { $("form#2form").validate({ rules: { viaAltro: { required: "#AltraVia:checked" }

[jQuery] Re: Hide function problem in IE8

2009-05-11 Thread ciupaz
Perfect, thank you Waseem. Luigi

[jQuery] Hide function problem in IE8

2009-05-11 Thread ciupaz
Hi all, I have this jQuery snippet to hide a "DIV" block when the user select one value of a radio button:

[jQuery] Copy text between textbox

2009-05-07 Thread ciupaz
Hi all, having a form with a radio button and 2 textboxes, how can I make that when the user select one value of the radio button, the second textbox assume the same text value of the first textbox? Thanks in advance. Luigi

[jQuery] Re: Disable checkbox

2009-05-07 Thread ciupaz
Perfect, thank you Jorn. Luigi On May 6, 3:06 pm, Jörn Zaefferer wrote: > That doesn't need the validation plugin. jQuery can do this by itself: > > $("#first").click(function() { >   $("#other").attr("disabled", true); > > }); > >

[jQuery] Disable checkbox

2009-05-06 Thread ciupaz
Hi all, using jQuery.Validate plug-in, how can I disable a checkbox when the user check another checkbox in the form? Thanks in advance. Luigi