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
PS3 attached with HDMI to HDTV blacking out
JSON Value Retrieve
Display Query Results in a Message Box
asp.net page to test database connectivity
The Citrix servers reported that they are too busy to provide access to the selected resource
Internet Explorer Keeps shutting down
Arcserve 11.5 and LTO 5
Printing to printer over a WAN Link
Slipstream all updates into new wim.image / win 7 install DVD
NAT setting and vmware