隐藏/显示表单元素+选项卡 [英] Hide / Show form elements + tabs

查看:84
本文介绍了隐藏/显示表单元素+选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个隐藏/显示表单元素的脚本,并包含在选项卡脚本(选项卡导航)中。当代码重复时(按标签内容),隐藏/显示功能适用于第一个选项卡,但在每个后续选项卡中都会中断。为什么?帮助赞赏!


示例: http://geocities.com/edmurphy21隐藏/显示脚本:

展开 | 选择 | Wrap | 行号

解决方案

欢迎来到TSDN!


id必须是唯一的。你有两个id为容器的div。


谢谢你看看!但是,在创建唯一ID名称后,我仍然遇到同样的问题。因此,TAB-2现在可以使用而TAB-1则不然。有什么建议?

下面是我所做的更改。

脚本更改:

展开 | 选择 | Wrap | 行号


脚本更改:

展开 | 选择 | Wrap | 行号

I have a script that hides / shows form elements, and wrapped in a tab script (tab navigation). When the code is duplicated (per tab content), the hide / show function works for the first tab but breaks in each subsequent tab. Why? Help appreciated!

Example:
http://geocities.com/edmurphy21/

hide / show script:

Expand|Select|Wrap|Line Numbers

解决方案

Welcome to TSDN!

The id must be unique. You have two divs with the id "container".


Thank you for taking a look! However, I''m still having the same problem after creating a unique ID name. Consequentially TAB-2 now works and TAB-1 does not. Any suggestions?
Below contains the changes I made.

script change:

Expand|Select|Wrap|Line Numbers


script change:

Expand|Select|Wrap|Line Numbers


这篇关于隐藏/显示表单元素+选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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