user4921393
user4921393

Reputation:

how to set resizing in td tag which is already working in th tag?

First of all, I am new to javascript.

I took a code for table resizing and its working fine for TH tag, but i want it on TD tag. I tried for a couple of hours and i can't figure it out

Here is the link

plnkr.co/edit/mYRdNuhuofYIERvA9wOI?p=preview

Here, ob = getNodeName(ob, "TH"); i changed it into TD but its still not working.

So, i want the resize function in td tag instead of th tag.

Thanks for your help

Upvotes: 0

Views: 48

Answers (1)

Rakshith
Rakshith

Reputation: 387

Use this...

give name to your td and write script

var tdname = document.getElementByTagName('tdname');

Upvotes: 2

Related Questions