Monday 10 April 2017

Displaying message preview

I have a list of message title in the drop-down and when I select that title, I'm trying to display message body in the preview. I have message title and body in MongoDB, and I wrote following codes.

    <ul>
   <select>
     <label><option value ="message"><p> select a message </p></option>      

   </label>
   
   <option value = "message"> <p> </p> </option>
   
    </select>
    <hr>
   </ul>

It creates a message title in the drop-down menu. How could I display selected body of the message when a title is selected in the drop-down menu. I'm doing my project in node.js



via Suran

No comments:

Post a Comment