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

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -