Ich habe überall gesucht, gibt es eine Möglichkeit, die Tooltip zu erzwingen, nicht mit einem Ereignis, sondern mit einem Js-Code, weil wir alle den Fehler der numerischen Eingabe und der Paste wissen .Force zeige bootstrap tooltip mit Javascript
<script type="text/javascript">
var previous;
//Buy Button JS code
$(function() {
$("#searchform").bind('submit', function() {
var str = $('#search-form').val();
if (str.match(/^[0-9]*$/)) {
//Great, continue executing the script.
}
else
{
//Force show a tooltip asking the user to numerically type the text.
}
});
});
Vielen tun können, Sie beide Fragen beantwortet :) – Omarrrio