< input type=\"text\" name=\"araButon\" onKeyUp=\"return arama()\" class =\" form - control filter \" data -filter=\"app\" id=\"focusedInput\"/> I want to update 'data-filter' value by javascript I tried this code :
You can use dataset or setAttribute,