Click or tap where you want to insert a blank underline. This method ensures that when someone types on the line, the line stays in place. Or move it to the list of vars outside the for-loop, that way you save a few bits in not starting two var statements (those are all one var statement, not how they are separated by a comma. To create an underline in an online document or form, insert a table cell with the bottom border turned on. * Don’t forget ‘var’ instead of i in the for loop. You must escape html here when building the strings (or use $.fn.text) This is very dangerous when working with user input and can also destroy your layout if there is anything like HTML in your titles. Select the Double underline option in the drop-down menu. In the Ribbon, on the Home tab, click the arrow next to the U button. Highlight the text you want to double underline.
How to add underline in word series#
To start with, enter a series of space and select them. The Ribbon in Microsoft Word provides an option to create double underlines for selected text. First off, put cursor at the place where the line goes and click Insert tab. * You’re using text() to retrieve the value but using html()/append() to put it back. 7 Ways to Create a Fillable Field with Underline in Your Word Document Method 1: Manually Draw a Line. Either build outside and call $(this).append() a few times, or build it inside and call $(this).html( stuff ) The latter is recommended. * the calls to append() don’t make sense inside html. But instead of correcting the words, I am wondering if there is a way to highlight or underline the misspelled words (like in Words). Why call $.fn.each, $.fn.empty, $.fn.html and then a dozen times $.fn.append ? Excel: highlight/underline misspelled words I know Excel has a spell checker that can autocorrect misspelled words. There’s some performance to be gained in the jQuery version as wel. Although the raw JS version isn’t too bad either.