PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

how can i have some field mark as disabled ?

  1. Hi, I'm building a form that has a couple of fields that are populated by the query string.
    those fields are only to show the user.
    The user should not be able to modify the data in those fields.

    Is there any way to add the attribute disable to them ?

    Thanx for any help.

    here is the link if you can to see, the 2 first fields should be disable
    http://dev.theatreducoq.ca/le-theatre/reservations/?event_name=Spectacles%20001&event_date=5/6/2010&event_time=20:00&ticket_count=45

    (By the way, this plug in rocks !)

    Posted 14 years ago on Wednesday June 2, 2010 | Permalink
  2. You can add the disabled attribute with a little jQuery added to your page template.

    <script type="text/javascript">
    jQuery.noConflict();
      jQuery(document).ready(function($) {
    
         $("#input_1_5").attr("disabled", "disabled");
         $("#input_1_3").attr("disabled", "disabled");
    
      });
    </script>

    Test Screenshot

    Hope that helps.

    Posted 14 years ago on Wednesday June 2, 2010 | Permalink