javascript - how to get value into textbox without button click -
am using follows
<input type="text" value="<?php echo empty($this->session->store['actual_info']['actual_total_marketing_budget']) ? '' : $this->session->store['actual_info']['actual_total_marketing_budget']; ?>" readonly name="actual_total_marketing_budget" readonly id="actual_total_marketing_budget" size="30" style="height:20px; " onfocus="total_marketing_budget()"/></td>
here issue when clicking on textbox getting or changing value need value without clicking on text box have do. me please
try doing:
document.getelementbyid('actual_total_marketing_budget').value
see here in action. however, similar question answered here.
Comments
Post a Comment