How to set css style for all hyper link or image tags inside the div or panel or any other control id using jquery:
Jquery Tips:
Unlike the javascript, we can easily style for all hyper link or image tags inside the div or panel or any other control id using jquery:
By using, we can avoid use of looping / for each conditions.
This will be used to set css styles to the element dynamically.
This will be used to set css styles to the element dynamically.
Sample Code:
For all hyper link inside the DIV element.
$('#divid').find('a').css({visibility : "visible", display : "none"});
For all image inside the DIV element.
$('#divid').find('img').css({visibility : "visible", display : "none"});
For all hyper link inside the DIV element.
$('#divid').find('a').css({visibility : "visible", display : "none"});
For all image inside the DIV element.
$('#divid').find('img').css({visibility : "visible", display : "none"});