1

I am going to draw rectangle over image on html canvas. And I want to show popover with form just after mouse-up event of rectangle. Can Anyone suggest option to do this? Below I added what I have tried, and it was not succeed.

$("h2 > .editable").popover({
  html: true,
  sanitize: false,
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<h2 class="popover">
  <span class="editable" data-toggle="popover" data-container="body" data-title="Edit" data-content="<form>
  <div class='form-group'>
    <label for='annotation'>label</label>
    <input type='text' class='form-control' id='lbl'  placeholder='Enter name'/>
  </div>
 
  <button type='submit' class='btn btn-primary'>Submit</button>
</form>">
                    </span>
</h2>
ikiK
  • 6,328
  • 4
  • 20
  • 40
user14659427
  • 111
  • 2
  • 10

0 Answers0