-2

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 ?

3
  • 10
    Yes, it is possible. Commented Jul 30, 2012 at 9:10
  • Yeah there are several ways you could do it, depends how you want to implement it Commented Jul 30, 2012 at 9:12
  • 2
    Here try this answer stackoverflow.com/questions/7707074/… Commented Jul 30, 2012 at 9:13

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

1 Comment

how can I remove them one by one when name of child elements is not known ?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.