3
I have the following code below
<script type="text/javascript">
function getValue() {
var x = document.getElementById("NuJaneiro");
document.getElementById("NuFevereiro").value = x.value;
}
</script>
<td>
<input type="text" style="width: 80px;" runat="server" id="NuJaneiro" value='<%# DecimalPontoVigula(Eval("Janeiro"))%>'
name="NuJaneiro" onblur="getValue()" />
</td>
<td>
<input type="text" style="width: 80px;" runat="server" id="NuFevereiro" value='<%# DecimalPontoVigula(Eval("Fevereiro"))%>'
name="NuFevereiro" onblur="getValue()" />
</td>
My idea is to take the value of one field and put in another as soon as the user leaves the first field, however, the value is not being passed and when Pure by the browser hangs the screen.
Don’t make no mistake?
– PauloHDSousa
@Paulohdsousa, error is no longer giving the value is not being passed to the
<input type="text" style="width: 80px;" runat="server" id="NuFevereiro"
– Marco Souza
No, don’t do that. Deleting comments is deleting history. Where’s the answer that worked? In the @Laerte comment, I don’t see any link to a fiddle or anything like that.
– pnet
@pnet he posted the answer.
– Marco Souza
the comment was by the comment, but after I posted is what I saw. I thought he had posted a link to a fiddle or etc and was not appearing to me. But thanks and success there.
– pnet