AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   [ PHP ] Insert text into input ? (https://forums.alliedmods.net/showthread.php?t=296519)

CrazY. 04-22-2017 21:13

[ PHP ] Insert text into input ?
 
Hello, its possible to insert the file directory into a text input after of a file is selected ?

asherkin 04-23-2017 04:14

Re: [ PHP ] Insert text into input ?
 
Yes.

CrazY. 04-27-2017 20:20

Re: [ PHP ] Insert text into input ?
 
Well, I've tryed this, but did not work.

HTML Code:

<script type="text/javascript">
        function FileUpdate() {
                //$("#upload").text("text");
                //$("#upload").value($('#upload').value() + "New content!");
                document.getElementById('upload').text = "text";
        }
</script>

<input name="imgupload" id="upload" type="file" onchange="FileUpdate();"></input></p><br>



All times are GMT -4. The time now is 00:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.