# timebox.setSelectionRange

dastultz
797 8

Hello,

I have a pop-up window with the first field being a timebox. I'd like to focus on the timebox and have the hour highlighted. I can't seem to get it to work. I get the cursor at the far right with nothing selected:

<window>
<timebox id="tb"/>
<zscript>
tb.setValue(java.util.Calendar.getInstance().getTime());
tb.setSelectionRange(0, 2);
tb.focus();
</zscript>
</window>


What is the expected behavior of setSelectionRange on a Timebox?

I'm using ZK 3.5.2 on FireFox 3.0.7.

/Daryl

delete retag edit

## 2 Replies

dastultz
797 8

I said above that I get the cursor at the far right. In IE7 I get it on the far left - still no selection. Can anyone on Zk team tell me if setSelectionRange() works on a Timebox?

Thanks.

/Daryl

windperson
415 1

Hi dastultz,
This may be a bug, can you post the bug here? Thx.

[hide preview]