× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

How to know the value is empty

Feb 26, 2015
<p>you can use javascript to check the length of the array.</p> <pre><code>if (data.length==0){ // do something array is empty } </code></pre> <p>here is a related answer <a href="http://stackoverflow.com/a/5071150/3556874">http://stackoverflow.com/a/5071150/3556874</a></p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/27853636/How%20to%20know%20the%20value%20is%20empty/27853685">Stack Overflow</a>.</p>
comments powered by Disqus