The code works when I am using the val()-method on the form field.
On Thu, Oct 9, 2008 at 5:05 PM, ricardobeat <[EMAIL PROTECTED]> wrote:
>
> The value is in the element, not the parent :
>
> $("#question_2").change(function() {
> var itemValue = $(this).children(':selected').val();
> alert("i
The value is in the element, not the parent :
$("#question_2").change(function() {
var itemValue = $(this).children(':selected').val();
alert("itemValue=" + itemValue + " >" + this.id);
});
-ricardo
On Oct 9, 11:01 am, "Weyert de Boer" <[EMAIL PROTECTED]> wrote:
> I also have tried item.at
I also have tried item.attr("value") but that didnt work either.
Hmm,if I have tried out your code snippet. But I am trying to get the
form field values now so I can make eval()-statement of the condition
where from the value is then use to do the hide/show-bit.
Only I am have trouble to get the form field value of my project. I am
using the following code:
$
Interesting thanks. I will see if I can't make some invalidate method
for every condition. Somehow I think that's easier to maintain.
I will have to lookup if I can add multiple methods to such click-event.
Thanks. Wow, jQuery makes your live a lot easier.
Yours,
Weyert
On Tue, Oct 7, 2008 at
Showing and hiding fields based on user-defined conditions isn't part
of the validation plugin. But it should be easy enough to implement
with jQuery. To get you started, something like this:
$("#someCheckboxA").click(function() {
var toggleThose = $("#fieldQ, fieldR");
if (this.checked) {
6 matches
Mail list logo