Table or gridview nth-child()

Posted by Rajesh_Kumar under CSS 3 on 7/1/2015 | Points: 10 | Views : 441 | Status : [Member] [MVP] | Replies : 1
Hi All,
Can we pass column name other than column index in nth-child()method?

Rejesh Kumar


Responses

Posted by: Sheonarayan on: 7/2/2015 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
No, nth-child selector accepts only the index of the element from the top of the page, read this at http://techfunda.com/Howto/jquery/155/nth-childn-nth-child.

If you have name/id, you can use below JavaScript function directly

document.getElementsByName("elementName") or document.getElementById("elementId")

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Rajesh_Kumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response