So I am working with Weebly as a CMS for one of my clients. I am having to change the content for an input field however by default it has no value. The code for the input is as follows
<input class="wsite-form-input name="apply-code" placeholder="Enter Code">
I am trying to change the content of this with some JavaScript but not sure about the best way to go about this. I would normally just create a variable and then change the value of that variable but seeing as there isn't one present I don't think I can do it.
Could I change the inner text?
Thanks
$("input[name=apply-code]").val();?