TextBox focus method highlights the text inside input

I am having an input control which filters div tag, the problem is when it is filtered,the focus from input control is lost. It is like live filter. I already try using focus() method. But with focus method it highlights/ select all text inside input control. Does anyone come across such situation.or know any solution ?