I have this form and would like the placeholder text to turn red when my button is clicked. I have JS code but it doesn't seem to change the color when my button us clicked. Thoughts?
<form>
<input id="red-border-error" class="test-form-1" type="text" name="url" placeholder="yourstorehere.com">
<input class="test-button-1" type="submit" value="BUTTON"></input>
</form>
Javascript
document.getElementById("url-30").addEventListener("submit", (event) => {
event.preventDefault()
let errorMessage = document.getElementById("red-border-error").placeholder = "Type your store URL here";
let myForm = document.getElementById("url");
let formData = new FormData(myForm);
if (formData.get("urlName") === "") {
document.getElementById("red-border-error").style.borderColor = "red";
document.getElementById("red-border-error").placeholder.style.color = "red";
return errorMessage;
}