Hey guys,
We have used a RadTextBox in our master page for search. I want to disable a particular button based on the string present in the box or not. I have used below javascript which I call on the keyup event of the RadTextBox. However it is not returning a proper value of characters present in the RadTextbox while I am typing in it. If I enter a letter "a" it returns me nothing. But if I further type "b" then it returns me "a". So it returns my typed word - last character. Such is not the case with the normal asp textbox.
The reason being that I am using ClientID property of the RadTextBox. It is rendered as below.
I need the "
txtSearch_text" as ClientId, however the code is returning "
txtSearch". Is there any way I can do that.
Note: Do not worry about the
getElementById() that I am using to get the reference to the search box in javascript. I am pretty much sure it is correct.
Thanks,
Manoj