Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how can prevent the empty input in jquery

$('#form').submit(function() {
    if ($.trim($("#email").val()) === "" || $.trim($("#user_name").val()) === "") {
        alert('you did not fill out one of the fields');
        return false;
    }
});
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# convert double to int 
Csharp :: unity pause game c# 
Csharp :: difference between class and struct in c# 
Csharp :: c# string code ascii 
Csharp :: update multiple records with entity framework 
Csharp :: raylib c# basic window 
Csharp :: roman to int 
Csharp :: Task.FromResult(null) 
Csharp :: c# getting user input 
Csharp :: dicionário c# foreach keyvaluepair 
Csharp :: c# console print 
Csharp :: multithreading in c# 
Csharp :: sorting a list of objects in c# 
Csharp :: c# convert list t to datatable 
Csharp :: adding values to mock IHttpContextAccessor unit test .net core 
Csharp :: c# read csv file 
Csharp :: or in if statement c# 
Csharp :: c# multiple strings are empty 
Csharp :: convert object to httpcontent c# 
Csharp :: datetime empty date 
Csharp :: unity send post request json 
Csharp :: c# public static string 
Csharp :: how get data from json in c# 
Csharp :: save image in c# 
Csharp :: get controller name from ActionExecutingContext .net 4.x 
Csharp :: pyautopgui wrros on big sur 
Csharp :: how to make pc bsod C# 
Csharp :: the same schemaid is already used for type swagger 
Csharp :: unity detect a touch on ui element 
Csharp :: c# read double 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =