- Joined
- Aug 15, 2011
- Messages
- 167
- Reaction score
- 15
Hea there,
I have a question. I want to make a minimail for my CMS and every mail must show his content when you click on it. Like this:
And the javascript I am using:
And the html:
Is it possible to use a jqyery/javascript thingy for every mail I get that it does the function that it toggles?
I hope I have explained enough. If not, tell me.
Yours faithfully,
Galago
I have a question. I want to make a minimail for my CMS and every mail must show his content when you click on it. Like this:
And the javascript I am using:
PHP:
<script language="javascript">
$(document).ready(function(){
$('#minimail').toggle(
function() {
$('#minimailinhoud').toggle();
return false;
},
function() {
$('#minimailinhoud').toggle();
return false;
}
);
});
</script>
And the html:
PHP:
<td width="500" class="minimail">
<p class="inboxnummer">1</p>
<p class="inbox" id="minimail" onclick="javascript:toggle();">Mailtje</p>
<p class="minimailinhoud" id="minimailinhoud" style="display: none; margin-right:10px;">Afzender:</p>
</td>
Is it possible to use a jqyery/javascript thingy for every mail I get that it does the function that it toggles?
I hope I have explained enough. If not, tell me.
Yours faithfully,
Galago

