EasyUI Forum
April 18, 2024, 07:56:48 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Textbox onChange event will be triggered, despite its text has been not changed  (Read 4104 times)
gordis gmbh
Full Member
***
Posts: 103


View Profile Email
« on: May 08, 2018, 04:13:00 AM »

Hello experts,

I have a textbox, which contains a formatted text and button to set it in readonly mode. I used “\r” to format the text.

When the button is clicked, the onChange event will triggered. Despite I’ve not changed the original text.

Please have a look at the following example: http://jsfiddle.net/6hwwbptq/22/

How can be this issue resolved?

Thanks!
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: May 08, 2018, 04:51:29 PM »

Please use the '\n' instead of '\r'.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!