Hi
refer below threads:
http://www.aspforums.net/Threads/964187/how-to-dispaly-remaining-character-when-copy-text/
here I wrote below code:
<script type="text/javascript">
$(function () {
var i = 0;
$('[id*=TxtSMS]').keydown(function (e) {
var ctrlKey = 67, vKey = 86;
if (e.keyCode != ctrlKey && e.keyCode != vKey) {
$('[id*=LblCount]').html($(this).val().length);
if ($(this).val().length % 70 == 0) {
i = $(this).val().length / 70;
$('[id*=Lblsend]').html(i);
}
}
});
$("[id*=TxtSMS]").bind('paste', function (e) {
setTimeout(function () {
$('[id*=LblCount]').html($("[id*=TxtSMS]").val().length);
var msgCount = $("[id*=TxtSMS]").val().length / 70;
$('[id*=Lblsend]').html(Math.floor(msgCount));
}, 100);
});
});
</script>
here it will display number of message in Lblsend.text
I define other label (LblQuantity) I want in LblQuantity will display number of message Like Lblsend...
I mean how I can change this line to display value in 2 label:
$('[id*=Lblsend]')
Best regards
Neda