How to change visibility of a div css to visible with jQuery

后端 未结 4 1250
说谎
说谎 2021-02-13 15:14

I have NEXT and PREVIOUS buttons on my screen. When the page initially loads I want the Previous button to be hidden and as soon as user clicks the Next button I want Previous b

4条回答
  •  别那么骄傲
    2021-02-13 15:43

    firstly you have not closed your if statement and navigationButtonTop is a class not a id try this.

    if (that.get("pageCounter") >= 1) {
         $(".navigationButtonTop").css("visibility", "visible");
    }
    

    as the OP has edited his question the new answer would be:

    $(function() {
      $(".navigationButtonTop").css("visibility", "visible");
    });
    

提交回复
热议问题