I use ajax in my project to select the option. Without combify, I can use this:
$('#myId').val(ajax_value);
With Combify, I need to use this:
$('#form-myId').val(ajax_value);
var innerOption = $('#form-myId').parent().parent().next().find('option[value='+ajax_value+']').text();
$('#CombifyInput-form-myId').val(innerOption);
It would be great to be able to use some official combify method for this instead of this hacky way.
I use ajax in my project to select the option. Without combify, I can use this:
$('#myId').val(ajax_value);With Combify, I need to use this:
It would be great to be able to use some official combify method for this instead of this hacky way.