Support

Account

Home Forums General Issues Select2 gets same ID than hidden field. Was that on purpose?

Helping

Select2 gets same ID than hidden field. Was that on purpose?

  • I’m trying to target fields with jQuery to create calculated values and populate the ACF (pro) fields, and i just realized the hidden field the select2 populates has the SAME ID than the select2.

    Was that on purpose?

    [0] was not selecting the “only field with ID”… but the FIRST of the two.

  • Can you be little more specific about the type of field. I just tried a relationship field and only found one occurrence of the field id when inspecting the element.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Select2 gets same ID than hidden field. Was that on purpose?’ is closed to new replies.