خرید بک لینک

Vote count: 0

I have a multi line textbox.

And through jquery-javascript I am limiting the max character of the textbox.

$('#<%=txt.ClientID%>').val().length

However, when I add a new line in textbox, javascript code counts that as one character but C# takes new line as two character like 'rn'.

Hence causing a difference in character count between javascript code and C# code.

asked 42 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 30 فروردين 1396 ساعت: 21:22

صفحه بندی