This article is excerpted from: Ajax instance: Getting site File Content
A simple Ajax example: if you select a book, the relevant name will be obtained in real time through Ajax.
Put four html files under the same file on the web site.
Index.html
<Html>
Xyj.html
<Select> <option> Tang Miao </option> <option> Sun Wukong </option> <option> </option> <option> Tang Miao </option> <option> Miss Guanyin </option> <option> westday Ruilai </option> </select>
Hlm.html
<Select> <option> Jia Baoyu </option> <option> Lin Daiyu </option> <option> Xue Baochai </option> </select>
Shz.html
<Select> <option> Lin Chong </option> <option> Li Yun </option> <option> Song Jiang </option> <option> time migration </option> </select>
Sgyy.html
<Select> <option> Liu Bei </option> <option> Guan Yu </option> <option> Zhang Fei </option> <option> CAO Cao </option> <option> Xiao Qiao </option> <option> Zhuge Liang </option> </select>
This article is excerpted from: Ajax instance: Getting site File Content