unity focus input field
MyInputField.Select();
MyInputField.ActivateInputField();
unity focus input field
MyInputField.Select();
MyInputField.ActivateInputField();
form validation focusin focusout
var name = $('#name').val();
var validName = false;
$('#name').focusin(function(event){
event.preventDefault();
if (!validName) {
$(this).val('');
$(this).css({ 'border-color': '#fff',
'color': 'black'});
}else if (validName && $(this).val().length >= 4) {
validName = true;
name = $('#name').val();
$(this).val(name);
$(this).css({ 'border-color': '#fff',
'color': '#000'});
}
});
$('#name').focusout(function(){
if ($(this).val().length <= 3) {
$(this).val('Minimum 4 characters!');
$(this).css({ 'border-color': '#cc0000',
'color': '#cc0000'});
validName = false;
}else if ($(this).val().length >= 4){
validName = true;
name = $('#name').val();
$(this).val(name);
}
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us