javascript - on each button click, change content in a containing div -


Can someone give me some guidelines / links / where / how do you create a function that contains content in that detector Changes when you click a button

exsample:

I have 7 "steps" in a view (which is my box), and every time you click on the "Next" button, then it will move from step 1 Stage 2 should be changed from step 2 to step 3 from step 3 to step 4

etc.

Hope this makes sense

< Try it out:

  $ (document) .on ('click', '# next', function () {div class = "post-text" itemprop = "text"> 

Var str = $ ("# scene"). Var; previous CRR = Streisbustrate (str.length - 1); Last customer ++; $ ("#sean"). Text ("Stage" + Last Last); });


Comments