Jump to content

Some 1 help plz :)


j007ha

Recommended Posts

I have a drop-down-list and whenever i onchange the item in drop down list (select) it will call a javascript function to display 1 more new row in a table which is im going to use it to display data from mysql.

 

So my question is how to echo the data from mysql according to the selected item into a input textbox which im create using the javascript function as i mention above.

 

Example code is like this:

 

var table = document.getElementById('mytable');

 

var tr = document.createElement('TR');

 

var td1 = document.createElement('TD');

 

var inp1 = document.createElement('INPUT');

 

inp1.setAttribute("value","");

 

tr.appendChild(td1);

 

td1.appendChild(inp1);

 

Im very appreciate any help from u all php genius ^^

Link to comment
https://forums.phpfreaks.com/topic/115346-some-1-help-plz/
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.