Support

Account

Home Forums General Issues Unique ID / Class from ACF Reply To: Unique ID / Class from ACF

  • Hi @emaildano

    Is this on the front end in a template?
    Is the JS inline with the template?

    You can create a unique ID from many things such as the time, name or even field value. If both the HTML and JS are being generated in the same file, you can match the ‘selector’ quite easily.

    I prefer to use the function uniqid – which will give you a very unique number.

    Thanks
    E