Skip to content

Change icon if text contains string with jQuery

I have the following structure that cannot be changed: What I need to do, is to change the icon if span.instancename contains “[h5p-iv]” (plus, ideally, delete or hide that partial string from the span) The “if” and “then” are not part of the code and the last line is unfin…

Alexa skill can’t understand command

I am trying to create a skill in Alexa dev console which will respond to a command by returning information found from API queries. My other commands work, such as “help”, status of elevator xxx, etc. Just this one command doesn’t return correct results. The expected outcome: Me: what is goi…

How can I add new list items on field input?

I am working on a simple to-do app. I would like to add a new element after user clicks on enter in the input box, and nothing happen. I tried lot of ways, I will share the recent code. Do you have any suggestions? Thanks a lot. UPDATE: It finally works. UPDATE: It finally works. UPDATE: It finally works. Ans…

HTML + JS: Clear File Input on button click

I want to tell my backend, I deleted the assigned file it already loaded: where the onclick function looks like: my problem now is: I can differentiate the request in the browser Network tab whether I do nothing or hit the delete button. Both times the input field does not show up. I wanted to add ipt.value=&…

Receive data continuously from socket react

I’m currently using this code for receiving data from sockets Code: the server sends data(images from camera) continuously. how to receive it without refreshing? i tried one method that requests data every milliseconds. i don’t know whether it is a good way or not Request every milliseconds code: …