Skip to main content
spelling
Source Link
Jason Aller
  • 3.7k
  • 28
  • 43
  • 40

I have an input filedfield and iI am putting value in it dynamically so iI am getting 01 value to put in the text box

$('#final_result').val(open+close); 

I have an input field wichwhich id is final_result and iI am getting 0 in open and 1 in close as a number. I try to convert it into string like

$('#final_result').val(toString(open)+toString(close)); 

but still getting 1 in input iI want 01 in input field.

I have an input filed and i am putting value in it dynamically so i am getting 01 value to put in the text box

$('#final_result').val(open+close); 

I have an input field wich id is final_result and i am getting 0 in open and 1 in close as a number. I try to convert it into string like

$('#final_result').val(toString(open)+toString(close)); 

but still getting 1 in input i want 01 in input field

I have an input field and I am putting value in it dynamically so I am getting 01 value to put in the text box

$('#final_result').val(open+close); 

I have an input field which id is final_result and I am getting 0 in open and 1 in close as a number. I try to convert it into string like

$('#final_result').val(toString(open)+toString(close)); 

but still getting 1 in input I want 01 in input field.

Source Link
vivek modi
  • 497
  • 1
  • 6
  • 20

How to write 0 as first character in input type text field

I have an input filed and i am putting value in it dynamically so i am getting 01 value to put in the text box

$('#final_result').val(open+close); 

I have an input field wich id is final_result and i am getting 0 in open and 1 in close as a number. I try to convert it into string like

$('#final_result').val(toString(open)+toString(close)); 

but still getting 1 in input i want 01 in input field