You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
Hi, thank you for this great work, it all worked fine and smooth.
But I was trying to dynamically create tagin-tag with js, afterward, I want to retrieve the value out of the input element, but the value is null.
But once I manually add some tags In the input field, I can get the input value afterward.
Is there any suggestion or ways I can look up to?
Hi,
You can update the value directly to the input element, then dispatch a change event, tagin will automatically updated according to the element value.
Hi, thank you for this great work, it all worked fine and smooth.
But I was trying to dynamically create tagin-tag with js, afterward, I want to retrieve the value out of the input element, but the value is null.
But once I manually add some tags In the input field, I can get the input value afterward.
Is there any suggestion or ways I can look up to?
dynacmically render.js
tagArr.forEach((el) => { const tagEl = document.createElement("span"); tagEl.setAttribute("class", "tagin-tag"); tagEl.innerHTML =
${el}; document.querySelector(".tagin-wrapper").appendChild(tagEl); });
getting value out of it, but it show null.
const tag = document.querySelector("#tag").value;
Thanks!
The text was updated successfully, but these errors were encountered: