Click here to Skip to main content
16,012,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
i am using jquery function for filtering data.i want to display the alert msg when no records found in my jquery function.can u help me
Regards
Amrit
Posted

1 solution

JavaScript
var elements = your_filtering_process_here;
if(elements.length) //Found
    elements.show();
else
    //display a message
    alert("No results were found.");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900