This topic is locked
[SOLVED]

  Disable php code snippet drop down list

8/22/2010 2:34:21 PM
PHPRunner General questions
I
itnaanti author

I am using the code described in this post: http://xlinesoft.com/phprunner/docs/add_dropdown_list_box_with_values_for_search.htm

to create a drop-down list which then immediately filters my List page.
I am trying to enable / disable it based on various factors, but I cannot get it to disable at all. I've gone through several "tips and tricks" and a slew of other member's questions, but I cannot get anything to work.
My assumption is that most of the other posts are in regards to Controls and Buttons, which my snippet is not. (Correct me if I'm mistaken, I'm just starting to learn this and don't fully understand the differences.)
Any assistance on disabling / enabling my drop down based on Events would be appreciated! (Or an alternate way to accomplish the same task. I'm not stuck on what I have so far...)
Thank you!

A
ann 8/23/2010

Chad,
you'll need to add the id (id='MySelect') to the <select> tag in the manual sample.

Use JavaScript Onload event on the Events tab then to disable/unable dropdown.

Here is a sample code:

$('#MySelect').attr('disabled','disabled');