I have created a english to hindi transliteration webpage . There are rules for mapping every hindi letter to its english equivalent. If user presses 'd' , I want to suggest some nearby letters . It would be great if I am able to create & remove buttons (which have associated onclick action) using javascript. Is that possible ?
-
10Yes, it is possible.Adi– Adi2012-07-30 09:10:49 +00:00Commented Jul 30, 2012 at 9:10
-
Yeah there are several ways you could do it, depends how you want to implement itTroy Cosentino– Troy Cosentino2012-07-30 09:12:10 +00:00Commented Jul 30, 2012 at 9:12
-
2Here try this answer stackoverflow.com/questions/7707074/…karmafunk– karmafunk2012-07-30 09:13:22 +00:00Commented Jul 30, 2012 at 9:13
Add a comment
|
1 Answer
steve graham - that worked for creating clickable buttons with asoociated action. ALso I Used this
function removechildren()
{ var node=document.getElementById("fooBar");
node.innerHTML = "";
}
To remove all of them at once.
1 Comment
user1371666
how can I remove them one by one when name of child elements is not known ?