动态更改/更新“中的步骤标题”;jquerysteps";没有「;删除“+&引用;加上“;?
如何在“jQuery步骤”中动态更改/更新标题,而无需“删除”和“添加”步骤动态更改/更新“中的步骤标题”;jquerysteps";没有「;删除“+&引用;加上“;?,jquery,Jquery,如何在“jQuery步骤”中动态更改/更新标题,而无需“删除”和“添加”步骤 哇,如果你想看代码,看看我的答案。这个问题对我来说完全有意义,我想对其他谷歌用户也是如此。我自己发现了,请参见onStepChanged: $("#wizard").steps({ autoFocus: true, bodyTag: "section", headerTag: "h6", labels: { current: "current step:",
哇,如果你想看代码,看看我的答案。这个问题对我来说完全有意义,我想对其他谷歌用户也是如此。我自己发现了,请参见
onStepChanged:
$("#wizard").steps({
autoFocus: true,
bodyTag: "section",
headerTag: "h6",
labels:
{
current: "current step:",
pagination: "Pagination",
finish: "Ende",
next: "Vor",
previous: "Zurueck",
loading: "Lade es..."
},
onStepChanging: function (event, currentIndex, newIndex)
{
},
onStepChanged: function (event, currentIndex, priorIndex)
{
obj = $("#wizard-t-" + currentIndex);
title_ = "ABC";
html_zaehler = obj.html()
html_zaehler = html_zaehler.split(".</span>")[0] + ".</span>";
obj.html(html_zaehler + " " + title_);
},
transitionEffect: "slideLeft"
});
$(“#向导”)。步骤({
自动对焦:对,
bodyTag:“节”,
头像:“h6”,
标签:
{
当前:“当前步骤:”,
分页:“分页”,
结束语:“恩德”,
下一个:“Vor”,
上一个:“祖鲁埃克”,
加载:“Lade es…”
},
onStepChanging:函数(事件、currentIndex、newIndex)
{
},
onStepChanged:函数(事件、当前索引、优先级索引)
{
obj=$(“#向导-t-”+currentIndex);
title=“ABC”;
html_zaehler=obj.html()
html\u zaehler=html\u zaehler.split(“.”[0]+”;
html(html_zaehler+“”+title_);
},
过渡效果:“slideLeft”
});
一句话很少能成为一个好问题。请解释您的问题,并用代码演示您的尝试。html()
,text()
,如果没有某种上下文,就不可能说出。