VaTo
VaTo

Reputation: 3078

How to insert a button inside of a jQuery Mobile Collapsible

Is it possible to insert a button inside of a jquery collapsible?

This is what I'm trying to accomplish, Im not sure if is possible and I haven't found much information about this: enter image description here

Upvotes: 1

Views: 79

Answers (1)

Goltar
Goltar

Reputation: 26

Yes but the collapsible header is already considered as a button. So you will have a button within a button !?!

    <div data-role="collapsible">
                    <h4>Heading <button href='#' id='bt01' style="width:100px;">Click</button></h4>
                    <p>I'm the collapsible content. By default I'm closed, but you can click the header to open me.</p>
            </div> 

the position should be adjusted in CSS

Upvotes: 1

Related Questions