Questions tagged [increment]

DO NOT USE THIS TAG ALONE. Use with a language tag like [javascript] or [python]. Adding one to the value of a variable, generally with the use of an increment operator.

Adding one to the value of a variable, generally with the use of an increment operator.

3520 questions
1
vote
1 answer

Increment list item value to retrieve next href to change image source

I am having some really weird issues when incrementing to the next list item to output the next href and then changing the image src with that value It traces out and makes it to the next item then it de increments if I keep clicking the next…
user992731
  • 3,400
  • 9
  • 53
  • 83
1
vote
1 answer

how to increment a number using jQuery for a footnote plugin in redactor.js

I'm developing a plugin for redactor.js which allows users to add in footnotes. Eventually the footnotes will be written to a separate table on the database, but at the moment this is only a mockup - it's part of a much larger university project and…
tomjeatt
  • 35
  • 1
  • 4
1
vote
1 answer

How to Increment numbers in an array to populate UIPickerView

I have a UIPickerView that I am populating with an array. It has two columns and i need the first column to go from 50-500. the second column to go from 0.01 to 1. The point is for the user to pick their weight. For doing the 50-500 I have this,…
user1450221
  • 109
  • 2
  • 12
1
vote
1 answer

Numeric keypad buttons to increase or decrease value of text area

I have a simple numeric keypad with buttons which work as expected. You click a button and that number is displayed in the text area. My question concerns adding 2 buttons to the keypad that will (+) increase or (-) decrease the number in the text…
user1502434
  • 97
  • 1
  • 6
1
vote
4 answers

SQL Checking for NULL and incrementals

I'd like to check if there is anything to return given a number to check against, and if that query returns no entries, increase the number until an entry is reached and display that entry. Currently, the code looks like this : SELECT * …
Frank
1
vote
1 answer

Simple -+ button for javascript text input

I've got this script which I'm using with succes, but I've tried, and failed, to get it to stop making negative numbers when substracting pass 0..