I'm working with Bootstrap 4.6
and I want to change the function
in my script
to pure javascript
. I don't want to use jQuery because my complete code is written in pure javascript.
How I'm able to solve this?
Thanks in advance!
<body>
<div class="container">
<h3>Tooltip Example</h3>
<input data-toggle="tooltip" title="Hooray!">
<input data-toggle="tooltip" title="Not Hooray!">
</div>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
</body>
</html>