Thanks for the reply.
I personally prefer this method.
Although my way works, the html is still rendered, but just hidden with css, meaning the code can still be inspected if required and the hidden data found.
In my application, it does not contain sensitive information, just a way to not show some fields.
Hopefully this might be useful to others.
Regards,
Joe,
ShareTheWarmth