Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm creating a PHP website where when you put a text in a textarea, and the content of the input will be put in a table in real time to have a preview of the result.
Is there a way to make this possible? I don't have any idea how to do this. I've found a lot of sites on the internet like "Real Time HTML Editor", "Instant HTML" and they do exactly what I want. Is there any JavaScript that could make this possible?
Try this
<table>
<tr>
<td id="real"></td>
</tr>
</table>
<textarea id="txt"></textarea>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#txt').keyup(function(){
$('#real').html($(this).val());
});
});
</script>
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 20 hours ago.
Improve this question
I am building a website for the first time. I want to do everything from the bottom up, full stack.
I need to know how to add token trackers in my HTML document. I don't know if I will need any time of backend to make this work and I am guessing I will need to know a bit of JS to make it happen.
My initial thought is to copy the URL from coin gecko somehow but that is all I am good for.
Here is where I am at:
<table>
<tr>
<th>Coin</th>
<th>Price</th>
<th>24hr Mcap</th>
<th>24 hr Vol</th>
</tr>
<tr>
<td>Bitcoin</td>
<td><!--interactive price-->price</td>
<td><!--interactive -->mcap</td>
<td><!--interactive-->vol</td>
</tr>
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I saw a slider in a website and I want to get the CSS and javascript of that element so I can use in my website. How can I accomplish that?
To read and use code from a website, you use an "Inspect Editor" which is integrated in the browser. An example of Firefox Inspect Editor:
https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector
There you can call up the HTML Editor and the Style Editor.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am using angularjs and i have a terms of use document in a text file which i was to render into html. Any recommendations on how to read that text file and display it using html or display it to the user? Thanks
Simplest way is using ng-include. If you need to use the line breaks in the text file within your view wrap in a <pre> tag
<h3>Terms</h3>
<ng-include src="'terms.txt'"></ng-include>
OR
<pre ng-include src="'terms.txt'"></pre>
DEMO
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to use Choose File to select a file in a file upload. CAn anyone help me fix this using Javascript, Jquery, CSS, or some other method?
You can try out: Bootstrap fileStyle
You first need to import js/bootstrap-filestyle.min.js like this:
<script type="text/javascript" src="js/bootstrap-filestyle.min.js"> </script>
and then change the button text using:
JavaScript:
$(":file").filestyle({buttonText: "Select file"});
OR through simple HTML:
<input type="file" class="filestyle" data-buttonText="Select file">
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
i am making a form in html which have to browse an image from the folder but i donot know how to do that the code i tried is
Html
<tr>
<td>*PHOTO</td>
<td><img border="0" src="image.jpg" alt="NOT VALID" width="340" height="220">
</td>
</tr>
don't know how to use browse button and write a script for it in Js
Quite a basic question that you can solve with some Googling
Example:
http://www.w3schools.com/php/php_file_upload.asp
HTML code to upload images
http://www.htmlgoodies.com/beyond/php/article.php/3877766/Web-Developer-How-To-Upload-Images-Using-PHP.htm