|
Title: [SOLVED]Selection js in jeasyui Post by: guruhyes on October 28, 2019, 05:46:51 PM Code: <head> the code above is working when i use only javascript, but when i change the text box to jeasyui the selection not working Code: <input type="text" id="myText" class="easyui-textbox" value="Some text for testing"/> sorry for bad english Title: Re: Selection js in jeasyui Post by: jarry on October 28, 2019, 08:25:27 PM Please call 'setSelectionRange' method to select text on the textbox component.
Code: $('#t').textbox('setSelectionRange', {start:2,end:4});Title: Re: Selection js in jeasyui Post by: guruhyes on October 29, 2019, 03:19:10 AM Please call 'setSelectionRange' method to select text on the textbox component. Code: $('#t').textbox('setSelectionRange', {start:2,end:4});hai Jarry, thx for your reply, i did what you suggested, but still not working Code: <input name="t" id="t" style="width:300px" type="text" class="easyui-textbox"> Code: {start: 0, end: 0}Title: Re: Selection js in jeasyui Post by: jarry on October 29, 2019, 08:11:22 PM Please look at this example http://code.reloado.com/uqatas3/edit#preview. It works fine.
Title: Re: Selection js in jeasyui Post by: guruhyes on October 30, 2019, 12:35:08 AM Please look at this example http://code.reloado.com/uqatas3/edit#preview. It works fine. my bad jarry,you might misunderstanding. i edited my code below https://jsfiddle.net/guruhyes/hy34j1b6/4/ reff from :http://help.dottoro.com/ljtfkhio.php so i want to select words inside the text box using click button when i try your code the console output only Code: {start: 2, end: 4}Title: Re: Selection js in jeasyui Post by: jarry on October 31, 2019, 12:41:16 AM Please look at this updated example http://code.reloado.com/uqatas3/2/edit#preview. It works fine.
Title: Re: Selection js in jeasyui Post by: guruhyes on November 01, 2019, 09:46:41 PM it works,
thx jarry |