jquery selectors getting unique id

Bappo

New Member
I'm trying to get the row contents by selecting the tr element which has a unique id.This is what i have so far, i'm fairly new to this, and really unsure why this isn't working.\[code\]var value = http://stackoverflow.com/questions/15832401/$('tr#'+idd).find('input[type=text]').map(function() { return $(this).attr("value"); }).get();\[/code\]I've tried changing the id so it's not unique and it does receive data. So just confused why this statement doesn't.Any help is appreciated \[code\]while ($record = mysql_fetch_array($entrys)){ echo "<tr id='" . $record['id'] . "'>"; echo "<td>" . "<input type='text' id='id' name='id' value="http://stackoverflow.com/questions/15832401/. $record['id'] . " ></td>"; echo "<td>" . "<input type='text' id='make' name='make' value="http://stackoverflow.com/questions/15832401/. $record['make'] . " ></td>"; echo "<td>" . "<input type='text' id='fuel' name='fuel' value="http://stackoverflow.com/questions/15832401/. $record['fuel'] . " ></td>"; echo "<td>" . "<input type='text' id='transmission' name='transmission' value="http://stackoverflow.com/questions/15832401/. $record['transmission'] . " ></td>"; echo "<td>" . "<input type='text' id='size' name='size' value="http://stackoverflow.com/questions/15832401/. $record['size'] . " ></td>"; echo "<td>" . "<input type='text' id='doors' name='doors' value="http://stackoverflow.com/questions/15832401/. $record['doors'] . " ></td>"; echo "<td>" . "<input type='hidden' id='hidden' name='hidden' value="http://stackoverflow.com/questions/15832401/. $record['id'] . " ></td>"; echo "<td>" . "<button name='update' onclick=edit('".$record['id']."') >Edit</button>"; echo "<td>" . "<button id='delete' name='delete' onclick=del('".$record[id]."') value="http://stackoverflow.com/questions/15832401/. $row ." >Delete</button> </td>"; echo "</tr>";}echo "</table>";\[/code\]
 
Back
Top