How do I convert the following xPath into a jQuery 1.10 selector?
/html/body/div[4]/div[2]/div/div/div/ul/li[4]
I'd like to use the result to do something like this:
jQuery('selector').hide();
How do I convert the following xPath into a jQuery 1.10 selector?
/html/body/div[4]/div[2]/div/div/div/ul/li[4]
I'd like to use the result to do something like this:
jQuery('selector').hide();
Well, it's a question of identifying the syntactical differences:
/
as a parent/child delimiter, while CSS/jQuery selectors use>
.:nth-child()
pseudo-selectorSo:
This would be something like this:
Im not sure about divs, maybe it could be like this another one: