function not working
Posted: Sun Oct 10, 2010 8:47 pm
I have this function that is supposed to grab entries from a database using PHP and SQL and show results as the user types:
this code references this text field:
[text]<p class="em_text"> <input id="searchb" type="text"/></p>[/text]
i ran firebug, and it reports no errors. what could be the problem?
Code: Select all
$(document).ready(function() {
$("searchb").change(function () {
$.post("searchtest.php", {partialName: $(this).val()},function(data) {
$("#results").html(data);
});
});
});[text]<p class="em_text"> <input id="searchb" type="text"/></p>[/text]
i ran firebug, and it reports no errors. what could be the problem?