jQuery的inputfunction

我试图使用typed.js和另一个jQuery插件,以便在typed.js运行它的string后,用户可以使用可编辑插件input答案。 我想限制答案是“是(y)还是不是(n)”,但这是一个不同的问题。

这是我到目前为止。 我正在尝试使用setTimeout来稍后调用第二个函数。 这是在翡翠:

脚本

window.onload = $(function(){ $(".element").typed({ strings: ['Are you down with the movement(Y/N)?'], typeSpeed: 150 }); setTimeout $(function({ $(function(){ $(".element").editableDiv(); )}; )}; )}; 

它看起来像你的setTimeout语法有点closures:

 window.onload = $(function() { $(".element").typed({ strings: ['Are you down with the movement(Y/N)?'], typeSpeed: 150 }); setTimeout(function() { $(".element").editableDiv(); }, 1000) }); 

什么是你使用的可编辑的jQuery插件?