Question: ```
if (stash != 0) {
            for (i=1; i<=6; i++) {
                a[1][i]=a[1][i]/stash;
            }
        }
        else
        {
            NSLog (@"Matrix is Not Invertible");
            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Matrix is not invertible!" delegate:nil cancelButtonTitle:@"Review Input" otherButtonTitles:nil, nil];
            [alert show];

        }

```

I Want to stop the program if the variable "stash" is zero, but i can't use break since it's not in a loop, i wanted to use return but it says that void should not return any value... what should i do to get this working? thanks for all your help....

Answer: 
Make this line:

```
var wordClone = node.clone(true);

```

into this:

```
var wordClone = node.clone(true)[0]; // now it is HTMLElement

```

You were mixing jQuery objects with native elements. 

Also I'm at a loss of words why you would ***not*** use jQuery when it is available.

You can rewrite most of the things in jQuery:

```
if ($("p:contains('computer forensics is')").length) {
    var highlight = $('<span/>', {
        "class": "higlight",
        style: "background-color:red;"
    });
    var node = $("p:contains('computer forensics is')");
    var wordClone = node.clone(true);
    highlight.append(wordClone);
    node[0].parentNode.replaceChild(highlight, node);
}

```
**Note: the code below does not work if the text to target has portions wrapped in other HTML elements like:  

`computer <i>forensics</i> is`**

All you need is to highlight some specific text portions?  

Create your own micro-plugin:

**[jsBin demo](http://jsbin.com/witol/1/edit)**

```
$.fn.highlight = function(word){
  return this.each(function(){
    var span = $('<span />', {
      'class' : "",
      'html'  : word,
      'id'    : "",
      'title' : "",
      'style' : "color:white; background:red"
    }),
        $el = $(this),
        reg = new RegExp(word, 'ig');
    $el.html($el.html().replace(reg, span.prop('outerHTML')));
  });
};

// ///////
// USE EXAMPLE:

$('p').highlight('computer forensics is');

```

![enter image description here](https://i.stack.imgur.com/K19Z8.jpg)