www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help with jQuery to disable input fields using select options

  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Help with jQuery to disable input fields using select options

    Hi guys,

    I'm trying to use jQuery to do the following but have had no luck in doing so. I'm fine at doing this in PHP, but not sure how to do this for jQuery. I've got two options on a select which when option 1 is selected I want all 3 text input fields to be disabled and a class of 'disabled' being added to all 3 of the text fields (data1, data2 and data3). However if option 2 is selected then they remain available to add text in. Please see jsfiddle link below and of course feel free to add code to it.

    http://jsfiddle.net/x5mfX/1/

    Thanks in advance.

  2. #2
    Join Date
    Feb 2013
    Posts
    46
    There is no JavaScript there?

    ... here, this is me being nice: http://jsfiddle.net/x5mfX/2/
    Last edited by s-p-n; 03-21-2013 at 01:11 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles