var div = document.createElement("form"); div.setAttribute("name","frmtag"); mainC.appendChild(div); var sel = document.createElement("select"); sel.setAttribute("id","sel"); sel.setAttribute("name","tag"); div.appendChild(sel); var o = document.createElement('option'); o.value = "All"; o.text = "All"; sel.add(o);
<select name="tag" id="sel" onchange="addingBlog(this.value,'1')"> <option value="All">All</option> </select>
mydynamic_select.setAttribute("onchange", function(){GetValue(alert(mydynamic_select_id);});
$('#sel').change(function(){ addingBlog ($(this).val(),'1'); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)