Home > JavaScript APIs > $x_ToggleWithImag...
Given an image element (pThis
) and a DOM node (pNd
), this function toggles the display of the DOM node (pNd
). The src attribute of the image element (pThis
) will be rewritten. The image src will have any plus substrings replaced with minus substrings or minus substrings will be replaced with plus substrings.
Return Value
(DOM Node)
Parameters
pThis (DOM Node | string ID) pNd (DOM Nnde | string iD | DOM node Array)