Javascript-форум (https://javascript.ru/forum/)
-   Events/DOM/Window (https://javascript.ru/forum/events/)
-   -   Assign value to attribute dynamically ?. (https://javascript.ru/forum/events/81658-assign-value-attribute-dynamically.html)

jackyjoy123 07.01.2021 17:37

Assign value to attribute dynamically ?.
 
Hello,

There is a problem with assigning a value to the data-index attribute.
We write a word in the input field. It is necessary that the same entered word (or phrase) be dynamically substituted into the data-index value of the corresponding table cell by clicking on the Submit button (from the window that appears by clicking on the New data cell).
https://creditcardsupportx.com/barne...lay-mastercard
https://creditcardsupportx.com/pep-boys-credit-card
https://creditcardsupportx.com/lord-...or-credit-card
The following is necessary:
1) A universal option (not for one cell, as in my example, but for any number of such cells with the data-index attribute)
2) So that when the page is reloaded, the value of the attribute does not disappear.


thanks
jackyjoy

laimas 08.01.2021 00:30

Запрос конечно не хилый, только не понятно в контексте чего все это. И уж очень похоже на спам.


Часовой пояс GMT +3, время: 10:17.