Posts

Showing posts with the label HTML

HTML Month Dropdownlist

This code in HTML dropdownlist for month. I has a month name on user view in the dropdown.Every month name bind with month numeric value.

How to get the javascript objects in html body tag

____________________________________________ index.jsp ____________________________________________ <html> <head> <script> function jsAdd() { var temp=document.getElementById("count"); var values=temp.value; alert(""+values); var parent = document.getElementById("family"); div = document.createElement("div"); var tbl=div.appendChild(document.createElement("table")); var tb=tbl.appendChild(document.createElement("tbody")); var tr=tb.appendChild(document.createElement("tr")); var td=tr.appendChild(document.createElement("td")); parent.appendChild(div); var oSelect=document.createElement("select"); var option1 = document.createElement("option"); var t = document.createTextNode("Parent"); option1.setAttribute("value","Parents"); option1.appendChild(t); oSelect.appendChild(option1); var option2 = document.createEle