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

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -