Raised This Month: $32 Target: $400
 8% 

[ PHP ] Insert text into input ?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-22-2017 , 21:13   [ PHP ] Insert text into input ?
#1

Hello, its possible to insert the file directory into a text input after of a file is selected ?
__________________








CrazY. is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-23-2017 , 04:14   Re: [ PHP ] Insert text into input ?
#2

Yes.
__________________
asherkin is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-27-2017 , 20:20   Re: [ PHP ] Insert text into input ?
#3

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>
__________________








CrazY. is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:32.


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