I am trying to edit the following input form to change the maxlength value.
<div id="chat-input">
<form class="chat-input-form" onsubmit="return false">
<input id="chat-input-field" value="" placeholder="Click here to join the conversation" maxlength="256" type="text">
</form>
</div>
Say I want to change the maxlength of the input to 300, how would I go about doing this client side? I know I can use inspect element, but I am trying to do it with a JavaScript file.
document.getElementById('chat-input-field').maxLength = xxx;?