I am trying to change the value of an input depending on selection from a combo box, so is user selects "Yes" from combo box the input should contain "test" value and than
if user selects "No" the input should be empty , "test" value remove from it.
I tryed to do it runing the following code:
if ($(this).val() == true)
I am not sure if only rich faces jars (3.3.2) had support for this jQuery implementatios like using "$" and other methods (may be some jQuery libraries are nedded), this could be one reason why this is not working in my opinion.
Please, any idea about how to implement this behavior are welcomed.
Joined: Mar 10, 2010
I am also new to JQuery. But You may try following code.
Also looks like there is error in your script. You have written but I guess, myInputStyleClass is the style class and not the input control. I will suggest you to try putting some alert() into code to get the values.