Hi all,

Quick question regarding retrieving a field value.  I have the
following code. Basically based on a select menu option I want to set
a hidden field to specific value depending on what is selected.

So if the user selects Urgent or Critical the hidden field would be
set to the value of another field in the form. I am trying to use $
("#chkneededby").val == $('#dateSel').val; but that does not seem to
work.

Is this correct if say I want to get the field value of a field with
the id dateSel
$('#dateSel').val;

$(pselectBox).change(function () {
       // var text = $(this).text();
       $this = $(this);
       if ($this.val() == 'Urgent') {
            $("#chkneededby").val == $('#dateSel').val;
       } else if ($this.val() == 'Critical') {
            $("#chkneededby").val == $('#dateSel').val;
       } else {
            $("#chkneededby").val('01/01/2999');
       }
    });

Reply via email to