Skip to content
Advertisement

Tag: jquery

Replace selector with array item

I would like to archive that I have an Array, with 3-4 Items and then I want to itterate throw all of them and change the selector in the function with the items of the array. then my function and then the foreach .btn should be like name or person, and I want maybe to add late more Items to

Jquery append div and dynamically set the width

I’m trying to append a div to a td in a table. However, as I am appending the div, I want to first take the clientWidth of the td (to take into account different screensize) and then set the width of the div to be that width: Now I’m trying to apply the 165 value to Div1 (where the width

Advertisement