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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -