For some reason this post disappeared. Can anyone answer this?
Thanks!
On May 1, 10:01 am, Andy adharb...@gmail.com wrote:
This is an odd questions. I have a huge form with a lot of data.
There is a table that data in it I need to display on a print screen
(of course this data isn't
Here is an actual example. Would anyone know why this isn't working?
What I find weird is if I do a single line (alert($(span).attr
(printElement));) it works fine. But if I try to use the each()
function following it, nothing happens.
Any help would be great.
Thanks!
HTML:
You need to read the jquery selector docs at
http://docs.jquery.com/Selectors/attributeHas#attribute
Below is the code that will get your data.
$(span[printData]).text();
On May 4, 12:33 pm, Andy H adharb...@gmail.com wrote:
For some reason this post disappeared. Can anyone answer this?
Expanding on my example below, with the each function.
First final all elements. Then do whatever you want with the element.
$(span[printData]).each( function( key, elementRef){
alert( $(elementRef).text() );
});
On May 4, 2:16 pm, Andy H adharb...@gmail.com wrote:
Here is an actual example.
4 matches
Mail list logo