0

I have a button which on clicked shows a dropdown we are using bootstrap to show the dropdown on button click below is my code.

 <div class="dropdown">
        <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
            Dropdown Example
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
            <li><a href="#">HTML</a></li>
            <li><a href="#">CSS</a></li>
            <li><a href="#">JavaScript</a></li>
        </ul>
    </div>

The requirement is that I have to show a div pop up stating system error which will occur only when the button click is not working.

How to check if button click is working or not and show pop up.

The above code is a sample code from w3schools my main code is written in angularjs and I am using angualar-ui-bootstrap for the drop down. the list values are also coming from the controller.

2
  • 1
    are you sending any kind of http request? Cause i cannot understand what you mean by "if button click is not working" Commented Apr 18, 2016 at 10:58
  • reproduce it on jsfiddle Commented Apr 18, 2016 at 12:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.