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
MailChimp WordPress Plugin Embedded styles display: none; hiding form, Part 2
How do I make Firefox prompt me for an application to open XML files?
Powershell, get-qadcompter
Corrupt Windows\System32\Config\Sy
stem
How to map external ip to internal subnet on a Cisco ASA
namespace question
using ubuntu 10.4 to format a drive for apple OS ?
VMware, vSphere Virtual Machine and Disk Errors "invalid disk type 7" and "cannot detect guest operating system type"
Cannot boot into Windows 7 partition (Blinking cursor) after using Acronis Disk Director resize
vbscript exit if file exists