scotchegg78 Posted July 30, 2008 Share Posted July 30, 2008 HI Guys I have a text box that uses JQUERY/ajax to update the database field on change at the moment. It works great the only draw back been there is no visual indication to the user it has changed. How do i modify this code to add a flashing "updating" in teinput box value for a few seconds then display the value again. the input box is... <input autocomplete="off" id="inputString" onChange="updateMood(this.value);" type="text" class="pal_search long_search" type="text" name="vMood" value="<?php if($mood ==""){$mood = "Update your Status...";} echo $mood;?>"/> the update modd function is simply.. function updateMood(newMood) { if(newMood==""){newMood = ".";}; jQuery.post("/pals/ajax_interface.php", {newMood: newMood}); } thanks for any details Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.