tom_mk Posted November 11, 2006 Share Posted November 11, 2006 hi, i have a few textfield creating by using PHPwaiting for user to input number.when user inputted num into one fieldhe/she then tab to input number on other field.however, when one input and moved to other field,i would like to have a commment associated with the field that just been filled pop out.eg. fetch info based on that number from mysql and display it at the RHS of that field.Any idea on how to do would be appreciate :>Thanks for any suggestionTom Link to comment https://forums.phpfreaks.com/topic/26902-can-this-be-done-using-javascript/ Share on other sites More sharing options...
Telemachus Posted November 11, 2006 Share Posted November 11, 2006 Sounds like you want to use onblur to call an AJAX function. Link to comment https://forums.phpfreaks.com/topic/26902-can-this-be-done-using-javascript/#findComment-123202 Share on other sites More sharing options...
fenway Posted November 12, 2006 Share Posted November 12, 2006 Yup... you'll need a round-trip to the DB somehow; AJAX is one way. Link to comment https://forums.phpfreaks.com/topic/26902-can-this-be-done-using-javascript/#findComment-123419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.