Microsoft
Software
Hardware
Network
Question : Select an element Jquery.
Hello,
Take a look at this code
<li id="2">
<span>
<a class="delete" href="#">Delete</a>
</span>
</li>
onclick of the a.delete I want to grab the li's id in to a variable using jquery. I tried this.
var mid=$(this).parent().attr(
"id");
but as you can see it selects the span tag,
any idea?
Answer : Select an element Jquery.
try
var mid=$(this).parent().paren
t().attr("
id");
Random Solutions
Loan application function
Microsoft Windows XP Repair Instalation Stuck
Code line too long
Recommended Anti-Virus, Anti-Malware for Droid Phones
What is the proper DNS settings for ...
Move Mailbox Powershell Script (sending Welcome e-mail HTML format)
ms access update query
putting a requiredfield on a combobox in asp
weblogic python scripts
Always view the last row of a textarea box