When I try to run this jQuery script:
$('#textbox').keyup(function() {
$vari = $(this).val();
$(".user:contains($vari)").css("display", "block");
};
it doesn't function, it just appears that the script doesn't really do anything!
This is the accompanying HTML:
<div class="user">hello</div>
<input type="text" id="textbox">
Please advice about what I have to do to get this script functional. It should grab the div with the class user, and if the text in the textbox with the id textbox has a value which is also in the user, it should make it visible.