Jump to content

after onclick, remove div contents


lewis987

Recommended Posts

Hi, newbie to javascript... i usually code PHP and wanting more interactivity in my project now...

 

im making a messenger system in PHP, the recpient field is for suggestions, so onChange, it sends the info to the suggest.php file. The suggest script takes the query sent and sends back the info... if any...

 

so if you enter a members name, eg: admin, it comes up admin as a clickable link. onClick, it changes the "to_msg" input field to the username. This works as intended, But, say i have 500+ names, its not very convient, so i though, after click to remove all the results out of the div, ive tried and tried and tried but its not working...

 

If you need the code... ill post it here...

Link to comment
https://forums.phpfreaks.com/topic/94013-after-onclick-remove-div-contents/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.