![](/img/trans.png)
[英]How can I load the attributes of a CSS class in a stylesheet directly into a hash using JavaScript or jQuery?
[英]using jquery steps ,how can we load last step directly
我是jquery步驟的新手,一旦加載表單,我必須直接加載最后一步。 有人可以建議我如何做到這一點嗎?
因此,不要將其放在jquery.steps.js(升級時可能會使您的更改被覆蓋)中,只需將以下內容放在要使用步驟的頁面上即可。您可以設置startIndex
行為。 在下面,我留下了其他一些設置,以便您可以了解如何應用“ jquery的行為” 步驟 。
$("#steps").steps({
headerTag: "h3",
bodyTag: "section",
enableAllSteps: true,
transitionEffect: "slide",
stepsOrientation: "vertical",
startIndex: 1, // Right here, you can set the index of the item you want to change.
});
假設您要直接轉到最后一步,請更改jquery.steps.js文件中的一個屬性
startIndex: 0
,
將您的最后一個步驟編號添加到“ 0”的位置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.