I'm trying to make WHOIS script that can display the availability of a domain name. I already have the PHP done. All I want is the jQuery part that could detect the change of the content of an input, send a POST request to a page and display the content of the page in a certain div.
Here's my HTML
<div class="input">
<input type="text" name="domain" placeholder="monsiteweb.com"/>
</div>
<div id="result">
</div>
The jQuery I have right now (not working)
<script>
$(document).ready(function(){
$("input[name=domain]").change(function () {
alert("Changed!");
});
</script>
Thanks a lot