I’m trying to get value from 1st input and show same value in a 2nd input
But value is not showed in 2nd taxt box.
Where I’m wrong?
Thanks a lot.
<div class="rowElem"><label>COGS:<span class="req">*</span></label><div class="formRight"><input type="text" name="cogs" id="cogs" value="<?=$_POST[cogs]?>" onchange="run(cogs)/></div><div class="fix"></div></div>
<script>
function cogs(sel) {
var name=document.form1.cogs.value;
}
</script>
<div class="rowElem"><label>COGS:<span class="req">*</span></label><div class="formRight"><input type="text" name="cogs" id="cogs" value="cogs"/></div><div class="fix"></div></div>
Here you have an example about how to assing the value of a input to another