user2504767
user2504767

Reputation:

How to set rich:calendar (RichFaces) value with jquery?

I have a rich:calendar component and now i want to change the value of these components with JQuery. I use Rich Faces Version 3.3.*

But this command doesn't work:

jQuery('#editForm:SomeDate').val('23.11.2014');

Is there a way, to change value of this component with JQuery?

Upvotes: 0

Views: 887

Answers (1)

mabi
mabi

Reputation: 5306

I'm not using RF-3 anymore (so can't really check), but this forum thread points out the best solution, IMHO:

#{rich:component('editForm:SomeDate').setValue('23.11.2014');

Have a look at the Documentation, specifically Table 6.163. JavaScript API for more useful methods.

Upvotes: 1

Related Questions