Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to open div as popup dailog on hover event

my div structre like this
<div id="s">
<div id="s1"></div>
<div id="s2"></div>
</div>
<<pre></pre>div id="s">
<div id="s1"></div>
<div id="s2"></div>/div&gt;


<div id="s">
hunders of div
</div>
how to open div id =s2 as popup on every div id="s"
Posted
Updated 21-Oct-12 19:24pm
v2

Hi,

Have a look here:
http://www.javascripttoolbox.com/lib/popup/example.php[^]

There are good examples for a lot of popup types.
 
Share this answer
 
Comments
Dheeraj Kumar Pentela 22-Oct-12 1:25am    
can abserver div structre
and give forword link correctly
Dheeraj Kumar Pentela 22-Oct-12 1:53am    
you under stand my question 40%
i am not taking about jquery dailog box




<div id="s1">
<div id="s1">
<div id="s1">
<div id="s1">
<div id="s1">
<div id="s1">


how to get nth s1 div content programatically

using eq(index)
how to find current index of the s1 div
Why you want only div? It could be anything, but the matter is, 'It should look like modal popup'. Refer the links below:
Simple jQuery Modal Window Tutorial [^]
Jquery Modal Popup Dialog[^]
14 jQuery Modal Dialog Boxes[^]
7+ jQuery Modal Popup Window Plugins With Tutorials, Demo and Downloads[^]


--Amit
 
Share this answer
 
Comments
Dheeraj Kumar Pentela 22-Oct-12 1:52am    
you under stand my question 40%
i am not taking about jquery dailog box




<div id="s1">
<div id="s1">
<div id="s1">
<div id="s1">
<div id="s1">
<div id="s1">


how to get nth s1 div content programatically

using eq(index)
how to find current index of the s1 div
_Amy 22-Oct-12 1:58am    
Try using runat="server". If you'll use this, then you can access your div content from server side code. Try something like this:
<div runat="server" id="s1">
and access the content from serverside.
Yugal Pandya 8-Jan-13 5:36am    
Try this

<script>
$(document).ready(function(){
$("button").click(function(){
alert($("div:last").index());
});
});
</script>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900