![]() |
| ||
| Add textbox to editable div problem I am having a problem with a javascript script. Add this code to an html file if you wanna try it. <html> After you add your first textbox to the editor, you need to unselect it to be able to add another textbox with only one click of the button. If you dont, you will have to doubleclick the button, and I dont want that. I would like the selected textbox to be blurred and then add another textbox with a single click of the button. If anyone could help, I would really appreciate it. thx |
| ||
| Re: Add textbox to editable div problem You need to empty the current selection range. function addtb() |
| ||
| Re: Add textbox to editable div problem Thanks. So simple and it works. |
| All times are GMT -4. The time now is 7:10 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC