Good morning/evening everyone.
I want to ask if there is any possibility to copy the directory when using:
<div id="AddAttachment" style="display: none;">
<input type="file" name="FILE" size="40" />
</div>
to another text field on a button click. The above is to browse for a file. Code in HTML.
This is the JavaScript code for the button:
<td>
<button onclick="myfunction()">Create URL</button>
</td>
The function in JavaScript looks like this:
function myfunction() {
var LinkedTypeDiv.value = AddAttachment.value;}
This is the HTML Text field where I want to have the Directory in:
div id="LinkedTypeDiv" style="display: none;">
<input type="text" name="URL" size="40" />
</div>
Its not working on my side and would like to know what I am doing wrong. Thanks