English 中文(简体)
是否采用灵活的方式,采用“可适应”的形式?
原标题:Is there a flexible way of creating an "adaptable" form using jQuery?
  • 时间:2011-06-07 06:22:15
  •  标签:
  • jquery
  • forms

我要求建立表格。 用户希望以直线方式填写表格,其形式要适应其选择。

我可以这样做,作为在 j里与一些hang死事件发表的一系列发言。 然而,这种情况可能变得ious。 我很想知道,是否对这一设想有模式/最佳做法?

我猜测,除非形式领域因选择不同而有所不同......或许会分三个阶段。

最佳回答

I just spotted this in another question and thought it might be sort of what you re after... I ve not been able to have much of a play with it yet though, so i m not 100% sure!

https://github.com/kflorence/jquery-wizard”rel=“nofollow”>。

问题回答

我将把不同“区”的形式领域分开,每个区都有一个独一无二的识别资料,最初的识别和隐蔽。

然后,每当一个形式要素改变其价值时(只有一次活动听取者了解形式,找到每个时间生成活动的要素,以避免无用事件听取者发言) 我将展示一个新的区,以用户改变的形式要素为基础,并在必要时检查用户为这一元件设定的新价值,并据此行事。

或者,你只能有一种形式,只有初步内容可以看得见,而且更不用说,那么每当必须显示新区时,就把内容与阿富汗武装部队分开。





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签