Skip to content

Add method to change value #7

@ostrolucky

Description

@ostrolucky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions