|
It is currently Fri Jan 09, 2009 3:09 am
|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 1 post ] |
|
| Author |
Message |
|
rahulmca1@gmail.com
|
Post subject: Spinner control in html Posted: Mon Jan 15, 2007 8:26 am |
|
Joined: Mon Jan 15, 2007 8:16 am Posts: 0
|
|
Hi Friends,
I need to take time input from user so for that I can use spinner control. We do not have spinner control in html.
How can I implement it so that I do not have to use seperate textboxes for hour,min,sec.
I can use seperate like
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Spiner control</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
<!--
function Spiner(num) {
var obj=document.getElementById('spin');
obj.value=parseInt(obj.value)+num;
}
//-->
</script>
<style type="text/css">
<!--
input {
width:3em;
}
button {
font-weight:bold;
}
-->
</style>
</head>
<body>
<input type="text" id="spin" value="0" />
<button type="button" onclick="Spiner(1);">↑</button>
<button type="button" onclick="Spiner(-1);">↓</button>
</body>
</html>
but it would not look good.
what I ant is
Input like 11:34:23 in a single text box with a spinner control working on each of 11,34,23 seperately on selection.
Waiting for your response.
Thanks in advance.
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 1 post ] |
|
Who is online |
Users browsing this forum: No registered users and 8 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums. Click here to Register
If you are a current member here on DEVPPL, please login below:
|
|
|