I have a question about the placeholder text in a simple contact form on the landing page I’m working on.
The text looks fine on larger breakpoints, but once I move to tablet and smaller, the placeholder text no longer fits in the space, and continues off to the right.
How do I modify the form field properties, so that placeholder text and any text added by the user wraps into multiple lines, instead of just running as one long line of text?
window.addEventListener('resize', function() {
var inputField = document.getElementById('Details');
if (window.innerWidth <= 479) {
inputField.placeholder = "Help meeeee!";
} else {
inputField.placeholder = "I need your help with my next top secret project.";
}
});
window.dispatchEvent(new Event('resize'));