Consider the following scenario:
HTML
<input type="text" id="source" value="the quick brown fox">
<input type="text" id="target">
CSS
#source
{
text-transform: capitalize;
}
JavaScript
function element(id) {
return document.getElementById(id);
}
element('target').value = element('source').value;
After CSS styling, #source
should display "The Quick Brown Fox".
The objective is to get the text-transform
-ed value and dump it into #target
. Is this possible to achieve?