Support

Account

Home Forums Backend Issues (wp-admin) Change placeholder in a taxonomy (select2) field Reply To: Change placeholder in a taxonomy (select2) field

  • The solution ended up being very simple. Just update the data in the $select variable instead of the placeholder in args. This is done by replacing the line
    args.placeholder = 'Search for event';
    with
    $select.data( 'placeholder', 'Search for event' );