jQuery pm system
jQuery pm system
i have made a small pm system with jQuery for my site. When the page loads i would like the content of the first pm to be loaded into the div on the right. the div on the left holds the subject name and sender of the pm.
All the pm divs in the left pane have ids beginning with message- and are followed by their id in the database:
<div id="message-109">
the message content is housed inside a hidden div with the same id type
<div id="content-109">
then when a message is clicked this div is simply loaded into the right hand div. so how would i be able to populate the div with the newest message? basically loading the message with the highest id? I am able to pull the numerical id from the element id and such, just need to get it to populate automitically.