problem with children() and attr('title')
I want a value out of my title attribute in my table. But it won't work.
Here is my code:
- $(tr.artikelDump).children().children('.aantalDump').attr('title');
This I use to get my title attribute out of my class aantalDump. But it is empty.
Here is my table where I try to get the title value from:
- <table>
- <tr class='artikelDump'>
- <input type='hidden' class='bestelid' value='1' />
- <input type='hidden' class='artikelid' value='555' />
- <input type='hidden' class='leverancierid' value='26' />
- <input type='hidden' class='omschrijving' value='omschrijving' />
- <input type='hidden' class='informatie' value='info' />
- <td class='aant'><input type='text' title='4' class='aantalDump' id='aantalDump' name='aantalDump' /></td>
- <td class='pr'><input type='text' title='4.02' class='prijsDump' /></td>
- </tr>"
- </table>