How do you remove a button's active state with jQuery Mobile?

后端 未结 8 1081
温柔的废话
温柔的废话 2020-12-03 07:31

In my mobile app, using jQuery Mobile...

  • I would like to make a simple button execute a simple javascript function on click. No page transitions, nothing sp

8条回答
  •  忘掉有多难
    2020-12-03 08:04

    you can just do it via css instead of java:

    eg: (you get the idea)

    #cart #item_options .ui-btn-active, #cart #item_options .ui-btn-hover-d, #cart #item_options .ui-btn-up-d, #cart #item_options  .ui-link-inherit{
        background:inherit;
        color:inherit;
        text-shadow:inherit;
    }
    

提交回复
热议问题