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
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?
http://jsfiddle.net/jencinas69/ytXnC/
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 () {
$(this).closest("td").next("td").html($(this).val());
});
I needed to pass the values to a table below the drop down boxes here is the final product
http://jsfiddle.net/jencinas69/Y9rSS/
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
show your actual page code and markup
I'm concerned that you've got two threads on basically the same issue. Have a look at this:
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.