javascript - Capitalizing the first letter of a label element -
i getting external html page data coming in lowercase. css, tried capitalize first intial of complete label tag unable it, makes complete uppercase this:
.fontmodal { text-transform:capitalize !important; }
but did not worked...
<table><fieldset><div><label>data</label></div></fieldset></table>
- current structure
now trying same in jquery, not sure , how proceed.
here code trying:
$('#container2').find("table>label").css(texttransform,'capitalize');
see below:
label { text-transform: lowercase; } div::first-letter { text-transform: uppercase; }
<table> <fieldset> <div> <label>data</label> </div> </fieldset> </table>
Comments
Post a Comment