用自定义文本替换html字符串 [英] Replace html string with custom text
本文介绍了用自定义文本替换html字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我有一个包含动态错误的错误消息div。点击按钮替换自定义文本的错误信息,3秒后显示fadeOut和原始错误信息。
请帮助我如何实现这一目标。条件是我只有这个所有的div。
Hi everyone
I've a error message div that contains dynamic errors. And a button on click replace error message with custom text and after 3 second it fadeOut and original error message appear.
Please help how can I achieve this. The condition is that I've only a div for all this.
推荐答案
你可以使用延迟正确吗?我不知道为什么你使用克隆,因为你有两个不同的div ..尝试下面的脚本
You could use the delay correct ? and I am not sure why you are using the clone as you have two different divs.. try the below script
( document )。ready( function (){
(document).ready(function(){
(' 。msg1')。 fadeIn(' 3000')
('.msg1').fadeIn('3000')
这篇关于用自定义文本替换html字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文