Wednesday, 15 January 2014

javascript - Setting Default value of input textbox in Jquery EasyUI dialog -



javascript - Setting Default value of input textbox in Jquery EasyUI dialog -

i have googled , looked throughout whole documentation , not figure out why value of input text not shown. using firefox latest version , below have done far.

<input name="amount" class="easyui-validatebox" id="d_amount" value="">

in regular html or php page can give value="300" set default value, in easyui, not possible. thinking possible alternative below:

<script> var m = '300'; document.getelementbyid("d_amount").value.innerhtml=m; </script>

nothing shown , not getting error. easyui expert, please help me.

note: input field within dialog

use below code

$("#d_amount").numberbox({ min:0, precision:2, value:300 })

reference : numberbox

or seek one

$("#d_amount").textbox({ buttontext:'search', iconcls:'icon-man', iconalign:'left', value:"300" });

reference : textbox

javascript input dialog jquery-easyui

No comments:

Post a Comment