Perfect, thank you all.
Luis
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
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
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
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
So putting value="NewUser.ascx" in the tag?
Luis
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
Perfect, thank you very much Waseem.
Luis
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
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
Thanks, it's work, and how can I recover the input text value, without
using the querystring?
Luis
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
Hi all,
how can I set a minimun value of type datetime for a textbox?
Thanks in advance.
Luigi
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
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
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
Perfect, thank you heohni.
L
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
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
I must write it in the jquery.validate.js file?
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()
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
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: {
Perfect, thank you very much Jorn.
Luigi
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
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?
Anyone has ideas?
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
It's working in that way Jorn.
Thanks a lot.
Luigi
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
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
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
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
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"
}
Perfect, thank you Waseem.
Luigi
Hi all,
I have this jQuery snippet to hide a "DIV" block when the user select
one value of a radio button:
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
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);
>
> });
>
>
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
39 matches
Mail list logo