Toggle divs without using Javascript

后端 未结 11 2044
日久生厌
日久生厌 2020-12-06 10:19

I\'d like to toggle a

, but my requirement is that it must work with javascript turned off. I would like to select a hyperlink that sta
11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-06 10:59

    The way to make this work with JS disabled is have the hyperlink have some href that accomplishes the task you desire - like:

    /the/original/url?advanced-search=true

    where the web server delivers different content when ?advanced-search=true is there. if JS is enabled, the jquery code you've researched should just cancel the original action.

提交回复
热议问题