Results 1 to 1 of 1

Thread: Change image base on input value

  1. #1
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default Change image base on input value

    Link example: http://davejob.com/increment/test.html

    I try to combine javascript increment in my input text to call some specific image, but it failed.

    ex.
    if value == 1, show image 1
    if value == 2, show image 2
    and so on..

    i use .keyup and switch case function, but it only work when i type in the input box. If i click on the plus/ min button even the value change, the image don't.
    Any suggestion for this problem, thanks
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	canstock11102092.jpg 
Views:	1221 
Size:	9.5 KB 
ID:	5706  
    _____________________

    David Demetrius // davejob
    _____________________

Similar Threads

  1. Change label color on input focus
    By Rain Lover in forum JavaScript
    Replies: 2
    Last Post: 06-08-2012, 03:27 AM
  2. dynamic change of an input (text)
    By sfchun in forum Looking for such a script or service
    Replies: 5
    Last Post: 06-16-2011, 11:27 PM
  3. change input name and value with dropdown list
    By awatts1984 in forum JavaScript
    Replies: 1
    Last Post: 10-17-2009, 02:24 AM
  4. Replies: 9
    Last Post: 09-21-2008, 02:13 PM
  5. change value of hidden input
    By brandon14 in forum HTML
    Replies: 1
    Last Post: 03-31-2008, 07:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •