Pulling data from a database.
The drawn data comes paired, from two fields in the same database.
Example source code:
The scenario: the values of [0] are displayed in a listbox. (American Studies & Anglican Studies)
The goal is to have the corresponding information (AMST & ANGL) appear in an <INPUT> box based upon the listbox selection.
I'm able to write either (AMST & ANGL) using <SPAN> & <DIV> tags. But I can't get (AMST & ANGL) to appear in an <INPUT> tag's value.
Didn't get any response on my first posting; thought I'd re-submit it. I'd like to know if it's even possible. Haven't found a single tutorial on placing known data into the value of <INPUT> tags.
innerHTML doesn't seem to work either.
The drawn data comes paired, from two fields in the same database.
Example source code:
Code:
var emps = [ ['American Studies','AMST'],['Anglican Studies','ANGL']];
The goal is to have the corresponding information (AMST & ANGL) appear in an <INPUT> box based upon the listbox selection.
I'm able to write either (AMST & ANGL) using <SPAN> & <DIV> tags. But I can't get (AMST & ANGL) to appear in an <INPUT> tag's value.
Didn't get any response on my first posting; thought I'd re-submit it. I'd like to know if it's even possible. Haven't found a single tutorial on placing known data into the value of <INPUT> tags.
innerHTML doesn't seem to work either.
Comment