Topic
No replies
venkatakrishnarao
venkatakrishnarao
10 Posts
ACCEPTED ANSWER

Pinned topic Retrieving Dojo text box value into javascript function

‏2013-03-06T13:59:59Z |
Hi,

I am new to dojo mobile development.
In my application I am unable to retrieve a text box value into a javascript file.
Here is my html code:


Order Number: <input data-dojo-type="dojox.mobile.TextBox">
<button onclick="getData()" id="order">GetStatus</button>

And here is the javascript function to get the text box value:

function getData()
{
alert("in getData function");
//var order=document.getElementById("order").value;
var order=dom.byId('order').get('displayedValue');
alert(order);
}

Help me for this issue.

Thanx in Advance.