Dynamic attributes don't work if element has no id

Hi,

Consider the following anchor link that populates the href attribute from what’s currently written inside a text input:

<a class="btn btn-primary" href="#" dmx-bind:href="bs5form.bs5input.value">

And the form:

<form>
    <input class="form-control form-control-lg" type="text" />
</form>

It’s all good if you’re using Wappler element/blocks (IDs are pre-populated), but if you paste HTML code from somewhere else you might be left wondering why dynamic attribute binding isn’t working :slight_smile:

The “bs5form.bs5input.value” was generated by Wappler (data binding picker).

Community Page
Last updated: