Added idea on using Popover for validation info

If your not sure about popovers see https://getbootstrap.com/docs/4.0/components/popovers/
pull/1445/head
Peter Goodhall 2022-03-31 18:35:25 +01:00
rodzic c5ff0df369
commit 024669758c
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -159,7 +159,6 @@
<div class="col-sm-9">
<input type="text" class="form-control form-control-sm" name="locator" id="locator" value="">
<small id="locator_info" class="form-text text-muted"></small>
<small id="locator_format" class="form-text text-muted">Enter multiple (4-digit) grids separated with commas. For example: IO77,IO78</small>
</div>
</div>

Wyświetl plik

@ -1,4 +1,10 @@
$( document ).ready(function() {
$("#locator")
.popover({ title: 'Gridsquare Formatting', content: "Enter multiple (4-digit) grids separated with commas. For example: IO77,IO78" })
.blur(function () {
$(this).popover('hide');
});
$("#sat_name").change(function(){
var sat = $("#sat_name").val();
if (sat == "") {