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
SSIS and variable issues
Are multiple PHP session paths possible?
Outlook 2007 delete cross out message instead of deleting
sharepoint foundation 2010 on 32 bit?
Where can I download System.Web.Extensions 2.0 version?
Setting up a VPN IPsec Tunnel
office 2007 settings not saved in user profile in terminal server
htaccess 302 redirect - seamless hidden url
Columns cannot convert between unicode and non-unicode string data types.
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed.