Skip to content Skip to sidebar Skip to footer

Javascript Code To Place Activity Indicator To A Cell

I am using the following code(no my own code) to load image to a css element (called cell) and to display an activity indicator. var cell = document.createElement('li'); cell.textC

Solution 1:

You can use jQuery's .position() or .offset() to retrieve the position of the cell and with the use of .height() and .width(), you can place the component in the middle of the cell.

Solution 2:

like all our talk in the comments:

all you need is $(cell).width() and $(cell).height()

and not .position() or .offset() , not this time...

Post a Comment for "Javascript Code To Place Activity Indicator To A Cell"