Closed ianrussel closed 7 years ago
Unfortunately, due to this project being supported by volunteers we cannot provide user support at this time. Please try a site like Stack Overflow: http://stackoverflow.com/questions/tagged/x-editable
Thank you.
Thank you @MarQuisKnox
I only need to display the first 20 characters if my textarea contains more than 20 character, then show the original value when editable is click.This is my code
original string = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat';
Now I want to display full comment when textarea is click, to show the user the full length of the comment. How would you implement this? I tried finding the closest form textarea and add original value, but did not work
update
Ok I tried added this piece of code after placement
value:$(this).attr('data-value'),
But this will throw 'undefined' when saving