-5
如何在「刪除」和「添加」步驟中動態更改/更新「jQuery步驟」中的標題?動態更改/更新「jQuery步驟」中沒有「刪除」+「添加」的步驟標題?
哇,downvoters,如果你想看到代碼,請參閱我的答案。這個問題對我來說是完全有意義的,我也認爲對於其他Google員工也是如此。
如何在「刪除」和「添加」步驟中動態更改/更新「jQuery步驟」中的標題?動態更改/更新「jQuery步驟」中沒有「刪除」+「添加」的步驟標題?
哇,downvoters,如果你想看到代碼,請參閱我的答案。這個問題對我來說是完全有意義的,我也認爲對於其他Google員工也是如此。
找到了自己,看到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"
});
一句話很少使一個很好的問題。請解釋你的問題是什麼,並用代碼證明你所嘗試過的。 – j08691
'html()','text()',沒有某種上下文,這是不可能說的。 – MCMXCII