I want to create search user input, where I am using this plugin, just like that of facebook or twitter which shows you list of users as you start typing. when you click on any of the list items, their profile is viewed, I want to achieve the same thing, I am using this option to get the value of the item that is clicked and change the location of browser to user profile
resultClick: function(data){ $data = data.attributes; window.location="/"+$data; }
but the problem is when I click on dropdown item, we can see the item getting added before the page loads to the user profile...
Is there any way by which I can stop adding item after clicking on dropdown item list
I want to create search user input, where I am using this plugin, just like that of facebook or twitter which shows you list of users as you start typing. when you click on any of the list items, their profile is viewed, I want to achieve the same thing, I am using this option to get the value of the item that is clicked and change the location of browser to user profile resultClick: function(data){ $data = data.attributes; window.location="/"+$data; }
but the problem is when I click on dropdown item, we can see the item getting added before the page loads to the user profile...
Is there any way by which I can stop adding item after clicking on dropdown item list