<bdo id='rB0c5'></bdo><ul id='rB0c5'></ul>
  1. <small id='rB0c5'></small><noframes id='rB0c5'>

  2. <tfoot id='rB0c5'></tfoot>

  3. <i id='rB0c5'><tr id='rB0c5'><dt id='rB0c5'><q id='rB0c5'><span id='rB0c5'><b id='rB0c5'><form id='rB0c5'><ins id='rB0c5'></ins><ul id='rB0c5'></ul><sub id='rB0c5'></sub></form><legend id='rB0c5'></legend><bdo id='rB0c5'><pre id='rB0c5'><center id='rB0c5'></center></pre></bdo></b><th id='rB0c5'></th></span></q></dt></tr></i><div id='rB0c5'><tfoot id='rB0c5'></tfoot><dl id='rB0c5'><fieldset id='rB0c5'></fieldset></dl></div>

      <legend id='rB0c5'><style id='rB0c5'><dir id='rB0c5'><q id='rB0c5'></q></dir></style></legend>

      动态创建 div 时如何显示/隐藏 div

      how to show/hide divs when divs are created dynamically(动态创建 div 时如何显示/隐藏 div)
        <bdo id='1ElB8'></bdo><ul id='1ElB8'></ul>

        1. <small id='1ElB8'></small><noframes id='1ElB8'>

        2. <tfoot id='1ElB8'></tfoot>

              <tbody id='1ElB8'></tbody>
                <legend id='1ElB8'><style id='1ElB8'><dir id='1ElB8'><q id='1ElB8'></q></dir></style></legend>
                <i id='1ElB8'><tr id='1ElB8'><dt id='1ElB8'><q id='1ElB8'><span id='1ElB8'><b id='1ElB8'><form id='1ElB8'><ins id='1ElB8'></ins><ul id='1ElB8'></ul><sub id='1ElB8'></sub></form><legend id='1ElB8'></legend><bdo id='1ElB8'><pre id='1ElB8'><center id='1ElB8'></center></pre></bdo></b><th id='1ElB8'></th></span></q></dt></tr></i><div id='1ElB8'><tfoot id='1ElB8'></tfoot><dl id='1ElB8'><fieldset id='1ElB8'></fieldset></dl></div>
                本文介绍了动态创建 div 时如何显示/隐藏 div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在开发具有两个级别的评论重播评论系统,我在如何显示和隐藏 div 方面遇到了问题 ..,因为它的 id 是不同的 ..,我尝试了一种方式:

                I am developing comment systems with two level of replay to the comments and I have a problem with how to show and hide divs .., because it's id's are different .., I tried in a way with:

                <button>replayl</button>
                
                <span style="display:none;">
                   <form action='' method='post' name="addcmt" onsubmit="return validate()">
                        <textarea rows="1" cols="60" name='textarea1' id='textarea1' onKeyDown="limitText(this.form.textarea1,this.form.countdown,300);" 
                                                  onKeyUp="limitText(this.form.textarea1,this.form.countdown,300);">
                       </textarea>
                       <br>
                       <br>
                       <input type="hidden" name="level1" id="level1" value="commtlevel1" />
                       <input id='addcmt' type='submit' value='Add reply' name='submit'/> 
                   </form>
                </span>
                

                和jquery:

                 <script>
                     $("button").click(function () {
                        $("span").show();                 
                     });
                </script>
                

                但是这样当我点击回复按钮时,它会显示所有的 span 标签内容......,我想知道我如何只显示一个标签或一种完成工作的方式.

                but this way when I click reply button it shows all the span tag contente.., I wanna kow how I show one tag only or a way to my work done.

                推荐答案

                编辑后的问题,我建议你使用 div 而不是 span (因为 display inline vs block).

                After edited question, i suggest you use div instead of span (because of display inline vs block).

                $("button").click(function () {
                    $(".myform").toggle('slow');
                });
                

                可以按照您的意愿完成工作.这是结果.

                would do the job how you want.Here is the result.

                这篇关于动态创建 div 时如何显示/隐藏 div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                    <bdo id='1MVCL'></bdo><ul id='1MVCL'></ul>

                    <small id='1MVCL'></small><noframes id='1MVCL'>

                      <tbody id='1MVCL'></tbody>
                  • <tfoot id='1MVCL'></tfoot>
                    <i id='1MVCL'><tr id='1MVCL'><dt id='1MVCL'><q id='1MVCL'><span id='1MVCL'><b id='1MVCL'><form id='1MVCL'><ins id='1MVCL'></ins><ul id='1MVCL'></ul><sub id='1MVCL'></sub></form><legend id='1MVCL'></legend><bdo id='1MVCL'><pre id='1MVCL'><center id='1MVCL'></center></pre></bdo></b><th id='1MVCL'></th></span></q></dt></tr></i><div id='1MVCL'><tfoot id='1MVCL'></tfoot><dl id='1MVCL'><fieldset id='1MVCL'></fieldset></dl></div>

                          <legend id='1MVCL'><style id='1MVCL'><dir id='1MVCL'><q id='1MVCL'></q></dir></style></legend>