tags:

views:

22

answers:

1

I want to set my textboxes empty(blank) once user posted or skipped feed box in facebook. i m using following code:

var attachment = {
         .........some code here............
 };
Facebook.streamPublish('', attachment,actionLinks,null,null,clear);

}

function clear()
{
 document.getElementById("question").setTextValue() = "";
}

but this is not working. please help me.....

+3  A: 

assuming the element you want to change has the id 'question' you can do

document.getElementById("question").value = "";
John Boker