$('#Lat').maskedbox({
label: 'Lat:'
,labelPosition: 'left'
,labelAlign: 'right'
,width: 300
,promptChar: '0'
,mask: '+99 99 99'
,masks: {'9':'[0-9]','+':'[\+\-]'}
,onChange: LatChange
,required:true
,validType:{GIS:['Lat']}
,buttonIcon: 'fas fa-map-marker-alt greentext'
,onClickButton: getLast
});
...
$('#Lat').maskedbox('button').tooltip({position: 'top',content: 'get last known position'});
GIS format changer:
let nVal = '+99 99.9999';
$('#Lat').maskedbox({mask:nVal,masks: {'9':'[0-9]','+':'[\+\-]'}}).maskedbox('initValue','+')
then in console
VM5213:2890 Uncaught TypeError: Cannot read properties of undefined (reading 'tip')
at Object.tip (<anonymous>:2890:31)
at jQuery.fn.init.$.fn.tooltip (<anonymous>:2872:34)
at HTMLInputElement.onShow (<anonymous>:7553:9)
at <anonymous>:2822:13
trying
if(($('#Lat').maskedbox('button')).hasClass('tooltip-f')
){
$('#Lat').maskedbox('button').tooltip('destroy');
};
let nVal = '+99 99.9999';
$('#Lat').maskedbox({mask:nVal,masks: {'9':'[0-9]','+':'[\+\-]'}}).maskedbox('initValue','+')
$('#Lat').maskedbox('button').tooltip({position: 'top',content: 'get last known position'});
but get same error ...
do not get Uncaught TypeError only if don't create tooltip on button