如何在jquery中为Html代码编写代码? [英] How do I write a Coding in jquery for Html code?

查看:117
本文介绍了如何在jquery中为Html代码编写代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个网页中我想分成两部分。一方面,当我编写一个html编码然后点击提交按钮时,我想看到那个html编码的绝对输出。我怎么能写代码?请帮帮我...

In a single web Page I want to split up into two.In one side,when I write a html coding and then click the submit button,I want to see the absolute output of that html coding..How can I write the code?Please help me...

推荐答案

您可以添加一些 HTML文本编辑器,用户可以在其中编写HTML代码。然后有一个普通的 div 或其他东西,点击该按钮,将HTML编辑器的内容分配给div的 innerHTML 属性。它将反映出来。
You can add some HTML Text Editor where user can write HTML code. Then have a normal div or something and on click of that button assign the contents of HTML editor to the div's innerHTML property. It will reflect.


这篇关于如何在jquery中为Html代码编写代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆