Question: I am using JQuery UI Accordion, it works fine with the static content. However when i am loading the H3 and Div tags of the accordion from the ajax rest service call. The data is coming up properly but accordion is not loading up

```
onSuccess: function (data) {
        var results = data.d.query.PrimaryQueryResult.RelevantResults.Table.Rows.results;
        var html = "";

        for (var i = 0; i < results.length; i++) {
            html += "<div><h3><a href=\"#\">";
            html += results[i].Cells.results[3].Value;
            html += "</a></h3><p>"
            html += results[i].Cells.results[6].Value;
            html += "</p></div>";
        }
$("#results_accordion").accordion();

```

My Accordion Div is empty initially whihc i want to fill up with the data from the above service call on button click.

```
$("#results_accordion").accordion();

```

Any help ?

Answer: 
You can do it using macros:

* Edit -> Macros -> Start Macro Recording
* Edit -> Find -> Find Word at Caret
* Edit -> Find -> Find Next/ Move to Next Occurrence
* Edit -> Macros -> Stop Macro Recording
* Give some name for the macro, e.g. "simulate Eclipse `Ctrl`+`K`"
* File -> Settings -> Keymap -> Find the macro "simulate eclipse `Ctrl`+`K`" -> bind hotkey `Ctrl`+`K`

The same can be done for the `Ctrl`+`Shift`+`K` (use Find Previous/ Move to Previous Occurrence).
In IntelliJ, if the cursor is over a word and you press `Command`+`G` you will jump to the next occurrence of that word in the file. Similarly, you press `Command`+`Shift`+`G` you will jump to the previous occurrence of that word in the file