javascript - sharepoint content query webpart: hide empty column with jquery -


i want hide list column in editform.aspx

</script> <script language="javascript"> $(document).ready(function()  { $('nobr:contains("columnname")').closest('tr').hide()  }); </script> 

it works. want hide it, if there no value. how this?

$(document).ready(function()  { if ($('nobr:contains("columnname")').val() == "")   {     $('nobr:contains("columnname")').closest('tr').hide()   }   }); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -