views:

891

answers:

2

I want to use FBML as a canvas and would like to display a textbox on click of radio button. Can anybody out there help me out on this? e.g. if a user selects other as option it should make appear a text box. Is it possible? how? I'm eager to learn more from the responder.

A: 

very imprecise n illicit answers

Anonymous
+2  A: 

yes it is possible . Step 1 : make a div and put text box code into that div , and assign any id to the div let say id ="textbox". and in style attribute to the div put display='none' and call below function on onclick of the radio input

function showBoxt(id)
  {
      obj=document.getElementById(id);
            if(obj.getStyle('display')=='none')
             {
                    obj.setStyle({display:'block'});
             }
            else
              {
                obj.setStyle({display:'none'});
              }
    }
vinayrks

related questions