Hi Friends!
I have question please refer the following code to understand the question. (I removed '<' and '>' character from the following html code because otherwise the html tags will not be visible so i have written only tag names)
<div>
<div>
<img />
<img />
<img />
<img />
</div>
</div>
I want to solve following task with the help of jQuery
- On document ready out of four img between the inner div only first img should be visible and rest of the three img should get hidden.
- Now on particular event like focus, click etc. the out of four img between the inner div the visible img get hide and the other one should get visible.
Some other questions:
Is jQuery is able to identify only those elements enclosed by other tag?
I also want to know how the control flows in jQuery? specially in chained function. for EX.
$(selector).fun1(val,{fun2(){ }}
in above example which function is get executed first and in what sequence.$(selecter).fun1().fun2().fun3()
in above example which function is get executed first and in what sequence.In what sequence the functions in function chaining is get executed?
Waiting for your reply guys!