jquery check if json value is empty
log("test if object is empty:",test) obj before Json parseGetting values of each textbox with the same class inside the table row. if (!json) alert("JSON empty") Hi Justin, its better to provide some explanation along with your code, than the asker will understand why that particular code works. Its checking to see if the first object exists. In this post, I will show you a simple tip to check or verify that the element that you are accessing in jQuery is empty or not. jQuery provides a method to get and set html of any control. Check these articles for more details. Get HTML of any control using jQuery. Set HTML of any control using jQuery. Json key remarks and address is empty. If its empty then json prints undefine when extracting json. But i want replace empty json with - sign.How do I check if an HTML element is empty using jQuery? 419. Fastest way to check if a value exist in a list.