I have a search bar with a value of “USA” and I want that value to change into a placeholder that says “Anywhere in the world” when click inside the input form.
@NogDogJul 08.2019 — #Warning: I am not a JavaScript expert. However, this seems to work: <i> </i><!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <form action=""> <label for="test">Test:</label> <input type="text" name="test" placeholder="Anywhere in the world" value="USA" onfocus="this.value = '';" onblur="if(this.value == ''){this.value='USA';}"> </form> </body> </html>