highlight

highlighting next <dd> tag after clicking an anchor

I'm using some code I found to highlight an id after clicking an anchor link. I'd like to modify this to instead highlight the next <dd> tag in a definition list: <dl class="mainfaq"> <dt id="q1">Q1</dt> <dd><p>A1</p></dd> <dt id="q2">Q2</dt> <dd><p>A2</p></dd> <dt id="q3">Q3</dt> <dd><p>A3<...

Android Edittext Cursor and Highlight Problem Options

I am trying to implement a textview which has select text/copy and paste functionality. I tried to do this by making an Edittext with the following properties. I currently have the following Edittext: <EditText style="?android:attr/textViewStyle" android:editable="false" ...

VB6: make default response in InputBox not highlighted?

In VB6 (and earlier), is there a way to have the default response in an InputBox to be non-highlighted? ...

Need help to highlight a specific cell of a table and unhighlight onother cell if highlighted.

So, I will explain a bit further. I have a table with different cells. What I need to do is that when the user clicks on the cell, that cell would change its class and highlight. That is working perfect. The thing is I need is to unhighlight that cell if another cell is clicked. All cells has the "unselected" class by default. When cl...

Remove highlight color but maintain image highlight in Custom UITableViewCell

I am searching this for some time but I never found a solution. I have a UITableView with custom cells, those cells have an image and I place the labels on it. The thing is, when I select a cell, the whole cell frame is selected using the default highlight color. I tried changing the style, but if I use cell.selectionStyle = UITableVie...

highlight the text in webview when figer moves over the text in iphone?

I want to highlight the text when i drag the finger over the text in webview.I am able to detect the gesture and the coordinates at the point touched,But i am not able to highlight the text when i drag my finger over the text.Please help me out.Any sample codes would be more helpful. thanks. ...

how to highlight part of textarea html code

I want to achieve a python version web regexbuddy,and i encounter a problem,how to highlight match values in different color(switch between yellow and blue) in a textarea,there has a demo what exactly i want on http://regexpal.com,but i was a newbie on js,i didn't understand his code meaning. any advice is appreciated ...

Flex 4 DateChooser

Hello. I have an Array of days. I want those days to have a different background-color in the DateChooser component, say red. How can I do that please? ...

jqGrid disable row highlighting

How can you programatically disable the grid from highlighting a row when you hover over it with your mouse? Looking to do disable this only at certain times. This is the code from Oleg which worked: $('#result-close').click(function() { //Turn off hover highlighting $("#list").unbind('mouseover'); $("#list").u...

Jquery autocomplete respond to enter key

I'm using the jquery autocomplete UI widget, for example: var names = ["John", "Jack", "Nick", "Tom", "Joyce", "Nancy"]; $("#nameInput").autocomplete({ source: names }); I'd like it to behave like the Gmail's "To" textbox. Specifically, I'd like it to highlight the best match as you type and if you press enter, then the highligh...

Set a certain WORD as Selected/Highlighted in WPF RichTextBox from the ViewModel ?

Hello, I have a List of items in my ViewModel. Every Item represents a Row in a DataGrid. Every Row has a column with a RichTextBox as cell editor. I am searching data in the database. The ResultViewModel has the search word And the index of the column + row in the datagrid where the searched word is located. Now I need a method in th...

HTML Document Viewer with possibility to mark/highlight text in C# / .NET

Our company has a lot of electronic manuals in HTML and PDF file format. We want to create a document viewer in .NET (C#) which works as a library and learning tool: Mark and highlight text: User must be able to select a "Hightlight" Tool in the application to mark text (This will be directly inserted in the source as Text for example...

how to highlight user selected text within a piece of text which has already been highlighted?

I have a page where I am displaying some text in a div and I need to highlight this text in certain parts. I have done this by surrounding the text I need to highlight with a tag and appropriate css styling. E.g. <div> My text will look like this with <span class="highlight">highlighted bits</span> in it. </div> This works fine. Howe...

Highlight child in custom ExapandableListAdapter- Android

Hi Folks, Just a quick question. I've created a custom ExpandableListAdapter, both the parent and child have it's own XML layout file. But it's lost the highlight option when you select it (obviously it still selects the row). What option do I need to set to make it highlight like the standard layout would. Thanks! ...

Programatically highlight first row in tableview after first load

Im trying to highlight the first row in my table upon first loading the data and just cannot get it to work! I have tried lots of ways with no joy, the latest attempt being this: NSUInteger indexArr[] = {0,1}; NSIndexPath *n = [NSIndexPath indexPathWithIndexes:indexArr length:2]; [self.tableView scrollToRowAtIndexPath:n atScrollPosit...

Jquery: is there a way to highlight the text of a Div when you click on it?

With Jquery is there a way to highlight/select(like if someone were to select it with the mouse) the text inside of a div that i click on? not a textbox, just a normal div. i'm trying to make a 'short url' box, where when someone clicks on the textarea, it highlights all the text, but it also needs to NOT allow people to change the text...

VB.NET - Using an XML file to syntax highlight in a custom code editor?

Hey Overflow, I'm creating a code editor for a sub-version of Python in Visual Studio 2010. (.NETFW 4.0 Client) The thing is, I can't figure out how to write the XML file and then how to parse text in a RTB based on the info from said XML file... Just now I'm resorting to locking the control and filtering through the whole RTB to check...

How can I highlight certain options in a HTML select - using javascript

Hello, I saw this post: http://efreedom.com/Question/1-1161772/Can-Highlight-Certain-Options-HTML-Select-Using-JQuery which is similar to what I need to do, except a bit too complicated for my understanding. In the html body, I have a dynamically changing select form. The user can select multiple items from this form, and click a b...