Text document not changing to html

I want to change the text in a text file called data.txt but I don't know how to change it with script. This is my code:


    $[document].ready[function[]{
        $["#btn"].click[function[]{
            $["#txt"].load["data.txt"];
            
        }];
    }];
 Save as in the Notepad menu. Name the file "index.htm" and set the encoding to UTF-8 [which is the preferred encoding for HTML files]. Tip: You can use either .htm or .html as file extension. There is no difference; it is up to you.

How do I change the type of text file?

About This Article.
Open the file in its default program..
Click the File menu..
Click Save As..
Select a saving location..
Name the file..
Click the “Save as Type” menu..
Select a different extension..
Click Save As..

How do I change a text document to a file?

All you need to do is to right-click on the file, select the Open with and choose to open the file using Notepad. Once the text document is already opened, save it again as a text document.

Bài mới nhất

Chủ Đề