I have this form where I pass select values to an input field. Is it possible to pass this results in to a td instead of an input field?

here is the code


a table cell is like any other block element in regards to what you are talking about... I think..

Just like you would set the innerHTML of a div or span, you can set the innerHTML of a table cell (<td>);
Alternatively (and some would argue more correctly) you could get a table cell by id and append a text node with a value...

If I am totally off base for what you are asking, maybe give a little more clarification?


You can see in the code how the jquery is saying that where there is an input:text it will feed the value result based on an ID. instead of input:text I will like to use span and present those results in a table

I see you got it working, good. You could go even simpler probably and just

$("select").click(function () {

I needed to pass the values to a table below the drop down boxes here is the final product

The problem is that in my actual page I have three sets of drop down areas. The problem is that the selections are not placing in the correct td. Im stuck with this one

Member Avatar

show your actual page code and markup