Skip to content

Tag: javascript

How to check table column data type

I am trying to make table configurable. Before that I am making demo component through which I can make a my own configurable table. I want to pass few things to my table like, column names and data. Column Name I want to pass like this: the dataType above states that this column will have input type text whe…

Default beginning value of innerHTML of a div

In my app, I need to check if a div container is empty before appending certain text elements to it (the innerHTML is created and removed many times in my app, hence the need to check for emptiness). The div is created very simply as below in the beginning. Why doesn’t checking for an empty string as be…