Is there any widget to increment a integer inside a input widget ?

Is there any widget to increment a integer inside a input widget ?

  
 
Is there any widget to increment a integer inside a input widget ?
Just like this ?
Hi Kadir,

You can do that using a jQuery plugin or much simplier, using a simple input box and two buttons or images like you have in your example, using Javascript to increment the value in the onclick event.

Kind Regards,
Gonçalo M.
Hi Kadir,

I did something similar a bit ago, didn't actually create a widget because only needed it in one place.
It was like gonçalo said with just javascript.

But looked like this:


the javascript code is
decrement:  "document.getElementById('" + GroupInput.Id + "').value = eval(document.getElementById('" + GroupInput.Id + "').value) - 1"

increment: "document.getElementById('" + GroupInput.Id + "').value = eval(document.getElementById('" + GroupInput.Id + "').value) + 1"

Dont't forget to give a name to the input to be able to access it's Id on those expressions.

Regards,
João Rosado
Thanks exactly what I described just using words..
Nice post with the image examples...

Kind Regards,
Gonçalo M.
Thnx guys ;)