Getting a value from UX Element

EDIT 2: Now that I realized that all I need is to define a ux:Name property I’m getting the variable in javascript. But when I try to do the elementName.value it returns Fuse.Scripting.V8.Object and not the value. This code is trying to retrieve what was written in a TextInput.

<TextInput ux:Name="taskText" PlaceholderText="Add Task" PlaceholderColor="#666" Height="35" Value="" >

<Javascript>
function AddNewItem()
{
  if(taskText.value != "")
       todoItems.add(taskText.value);
}
</Javascript>

But I’m getting this.

http://i.imgur.com/z2Gwed4.png

OLD I was going throught the documentation looking for a way to get a value from a textbox and i found this

<DataBinding Target="taskText.Value" Key="taskTextValue"/>

I’m not sure if this goes only in or in and out but when i tried to get the value from javascript

todoItems.add(taskTextValue);

It tells me that taskTextValue is undefined.

OLD

EDIT : I think I asked the question in a wrong way, all I want is how to get data from a UX element no matter what it is.

I think I asked the question in a wrong way, all I want is how to get data from a UX element no matter what it is.