Get parent attribute using jQuery

dawn

New Member
I tried to get some of parent attributes from current node using this peace of code : \[code\]var oArrfileInfo = $(this).parent().attr("data").split('#');\[/code\]the HTML : \[code\]<td style="width: 5%" data='http://stackoverflow.com/questions/14546152/<%# Eval("FileID") +"#"+ Eval("FileName") +"#"+ Eval("Size")+"#"+ Eval("FilePath") +"#"+ Eval("ReferenceID")+"#"+ Eval("RefrenceKey")+"#"+ Eval("Exrtention") +"#"+ Eval("IsFolder")%>'> <asp:ImageButton Width="10" runat="server" ImageUrl="~/Images/Grid_ActionDelete.gif" CausesValidation="false" ID="imgBtnDel" CommandName="deleteFile" AlternateText="Delete" ToolTip="Delete File" /> <asp:ImageButton Width="10" runat="server" ImageUrl="~/Images/Download.jpg" CausesValidation="false" ID="ibtnDownload" CommandName="downloadFile" CommandArgument='<%#Eval("RefrenceKey")+ "," + Eval("FileID")+"," + Eval("FileName")%>' AlternateText="Download" ToolTip="Download File" />\[/code\]the Code : \[code\]ibtnDelete.Attributes.Add("onclick", "return deleteFile()");\[/code\]but it get it isn't referring any of the attributes
 
Back
Top