JQUERY live search jquery - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution

live search jquery


 190

Show Result
file.txt
JQUERY


1

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>

<input type="text" id="myinput" placeholder="insert some letters(p,j,a,n,g...)"></br>
<div id="mysearch" style="overflow:auto;max-height: 100px;width: 130px;background-color: white;"></div>

<script>
$(document).ready(function () {

$("#myinput").bind('input propertychange', function () {

$("#mysearch").empty();
var str = $("#myinput").val();
var res = str.toLowerCase();

$.get("/project/Bell22/sl_Kkm9HqYhTH202104963/file.txt", function (data, status) {

var myObj = $.parseJSON(data);

for (i in myObj.records) {

var post = myObj.records[i].Tech.search("" + res + "");

if (post != -1) {

$("#mysearch").css("border","1px solid #A5ACB2");
$("<br /><span>" + myObj.records[i].Tech + "</span>").appendTo("#mysearch");
$("#mysearch").css("border","1px solid #A5ACB2");
$("#mysearch").css("overflow","auto");

}
}

});
});
});

</script>
</body>
</html>


By        
The power of the user (%)
15%



The most helpful JQUERY solutions

plugin get client ip address using jqueryplugin get client ip address using jqueryJQUERY

Click to see more ...

  8.6K     1.8K

plugin detect country jqueryplugin detect country jqueryJQUERY

Click to see more ...

  4.4K     763

How to get client machine name or computer name with jquery?How to get client machine name or computer name with jquery?JQUERY

Click to see more ...

  10.4K     734

cookie jquerycookie jqueryJQUERY

Click to see more ...

  3.1K     409

plugin convert thousands to K jqueryplugin convert thousands to K jqueryJQUERY

Click to see more ...

  2.6K     389

show position on google map jqueryshow position on google map jqueryJQUERY

Click to see more ...

  2.1K     387

how to create a jquery plugin for converting date to days ago, month ago and year ago ?how to create a jquery plugin for converting date to days ago, month ago and year ago ?JQUERY

Click to see more ...

  2.1K     344

How to detect the version of IE browser using jquery ?How to detect the version of IE browser using jquery ?JQUERY

Click to see more ...

  2K     334

How to get top, right, left, bottom position of element div using jquery ?How to get top, right, left, bottom position of element div using jquery ?JQUERY

Click to see more ...

  1.9K     278

how to get ip address using jquery ?how to get ip address using jquery ?JQUERY

Click to see more ...

  1.7K     272