Topic: select text content element on focus to editable table

Jacques Meirlaen free asked 4 years ago


Expected behavior

By clicking on a element of a editable table, I expect the text content is immediately selected.

Actual behavior

I don't know how to do that. Thank you to tell me if possible easily.

Resources (screenshots, code snippets etc.)


Grzegorz Bujański staff commented 4 years ago

Hi. Do you want the text to be only selected or edit the value after clicking?


Jacques Meirlaen free commented 4 years ago

Hello, Both of them. When i click the element becomes editable (already done) and i'd like to have the content selected to update it immediately. By the way, is it possible to capture an event when the user has changed the value?


Grzegorz Bujański staff commented 4 years ago

Unfortunately, I could not find a method that would mark the entire text at once. And look here: https://datatables.net/reference/event/ Its should work in MDB



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.17.0
  • Device: laptop
  • Browser: Chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No