how to strike through a text using jQuery onclick method code example
Example 1: javscript insert element after another
function insertAfter(newElement, referenceElement) {
referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling);
}
var newElement = document.createElement("div");
newElement.innerHTML = "my New Div Text";
var myCurrentElement= document.getElementById("myElementID");
insertAfter(newElement, myCurrentElement);
Example 2: how to call javascript method using selectlist on change in vf page
<apex:selectList size="1" styleclass="chartBlock">
<apex:selectOptions value="{!dynamiclist}"></apex:selectOptions>
</apex:selectList>