When I receive an external HTML page, all the data comes in lowercase. I attempted to capitalize the first letter of each label tag using CSS, but it ended up making the entire text uppercase instead. Here is what I tried:
.fontmodal {
text-transform:capitalize !important;
}
However, this did not work as expected.
<table><fieldset><div><label>DATA</label></div></fieldset></table>
- This is the current structure of the HTML
Now, I am attempting to achieve the same effect using jQuery, but I'm not entirely sure how to proceed. Here is my code:
$('#Container2').find("table>label").css(textTransform,'capitalize');