thanks in advance for reviewing my post.
I’ve only been using jquery for about a week now and so far, it’s pretty neat. It seems I’m stuck though. I have a table with the following structure:
For example, I have a table with an id as “mytable”.
Rows with the following cells:
- A td with a div tag. The div tag has a p tag with an id as “myP1”
- A td with a div tag. The div tag has a p tag with an id as “myP2”
Nothing I do seems to work? How can I set the html inside the “p” tags? This didn’t seem to work:
//note: the key would match one of the ids in the "p" tags.
jQuery.each( map, function( key, value ) {
$( '#mytable td' ).find( 'p[id=' + key + "]'" ).html( value );
//this did not work either --> $('#' + key ).html( value );
});
Thanks inadvance for your help!
as for the rest of your answer, i think:
here is a working example with even more fun uses of jQuery, will add comments to it and update it shortly