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
transfering a directory with multiple files in parallel
Trying to use recovery storage group to restore exchange database
Determining Size of Disks for Exchange 2010 Migration
USB ports problem
Removing NOT NULL to a column doesn't work
Network issues loading company web-site
Which AV receiver will cover listed requirements?
Creating a new Array and Logical Drive
HTML 5: canvas
broad cast message to win xp and win vista systems via Windows 2003 server