Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge.
Gurpreet Singh Padam
Scripts always run in a sequential order.
So basically you are trying to use jQuery even before the jQuery library is loaded.
Your script is dependent on Nivo which in turn depends on jQuery library.
Either move the script to the line after the library is loaded, or move the library declaration to the head.
Also make sure you enclose the script inside DOM Ready handler.
So the order in which you should be loading these are
Gurpreet Singh Padam
Create div with contenteditable=”true” attribute, and in javascript, add event listener for this element:
window.onload = function(){
document.getElementById("inv-div-content").addEventListener("input", function(e) {
var inputContent = e.target.innerHTML; //do whatever you want with value
document.getElementById('actual-content-to-send').value = inputContent;
}, false);
}
#inv-div-content{
width: 60%;
height: 50px;
display: block;
}
Insert your text content
note: change this text area to input element of hidden type, I have set to text to see it working