How to separate individual HTML elements
Hey all.
I have a project im working on which uses some features of online websites that don't have an api.
A bit of a way through the code an element returns four linking statements with three of them having the property style="display:none".
What i want to do is just get the html link in the <a> statement without the display none attribute.
I've spent close to 2 hours on it and have even tried using an xml reader to try to get the info but no luck.
Code:
<DIV id=example style="DISPLAY: block"><A style="DISPLAY: none" href="fakelink">Fake</A>
<A style="DISPLAY: none" href="fakelink">Fake</A>
<A href="real link">Real</A>
<A style="DISPLAY: none" href="fakelink">Fake</A>
<A style="DISPLAY: none" href="fakelink">Fake</A></DIV>
I wouldnt be able to separate them by the actual link either as it changes depending on the users input.
Not sure if the real link has an assigned style or if it's just "display:normal" or etc.
Any help would be greatly appreciated