Hi ,
Hi , i can do it by in the onGetItemChildren , using the AElement , which is the <li> to call the setAttribute , but now , i face another challenge , how to i set the attribute for my link <a> item ?
Hi , Bruno , any chance for the request to be able to get around ?
With the method
Hi ,thanks for your simple answer but it didn't help , i know about the above method , but my problem is that , in the onGetItemChildren , i do not know how to get the <a> element inside the <li> element (as shown above), but the Alement in the event is pointed to <li> , what i want is to add attribute to the <a> NOT the <li>. IIs there any where i can get the targeted element inside the <;i> ?
You can loop through the children of the LI element (which is the element passed in the event).
I suspect the A element is the first element, as such, you could use
AElement.setAttribute(attributename,attributevalue)