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
New ESXi install fails (PSOD)
DNS Event ID's 4010 & 4013
Perl, Using Text::CSV_XS / Count number of references
greater then formula issue
checking what is TRANSACTION ISOLATION LEVEL right now
Delphi, forms in Dll and Threads
how can i pay electricity bill online using hdfc netbanking ??
How to specify different languages for different users using Windows 2008 Teminal Server?
how to capture out parameter from storedProcedure in java
Is it possible to encrypt an email message using PHP?