[Vtigercrm-developers] Updating "Chosen" Selects using jQuery?

Conrado Maggi comaggi at gmail.com
Fri Feb 6 19:59:18 GMT 2015


Have you already try with:



On Thu, Feb 5, 2015 at 2:50 PM, Alan Lord <alanslists at gmail.com> wrote:

> I have a small customisation to perform a lookup and update various fields
> in a module based on the value selected by the user.
> Using jQuery.val(newValue) works for inputs and text boxes, but is not
> working for Selects.
> I am selecting the element via it's "name" property in the form object.
> What do I need to do to update the UI so the Select box shows the change
> to the user?
> I found this online:
>  $("#form_field").trigger("chosen:updated");
> from http://harvesthq.github.io/chosen/ but this doesn;t seem to have
> helped at all.
> Thanks
> Al
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150206/1e4806d5/attachment.html>

More information about the vtigercrm-developers mailing list