Why won't the change in CSS styling caused by JavaScript remain after script finishes running?

前端 未结 2 1730
说谎
说谎 2021-01-27 15:56

Edit: Title makes more sense now.

I\'m currently writing basic CRUD functionality using a popular web framework. In the edit section of my app, I have a \'Delete\' butto

2条回答
  •  天涯浪人
    2021-01-27 17:02

    When your form submits, the page refreshes and you thus need to reapply the js/css changes on document load... or submit using AJAX and change the input type from submit to button / or return false on clicking the submit button.

提交回复
热议问题