locked
making date field compulsory when an option is selected RRS feed

Answers

  • Have you tried using datetime field instead of textarea?

    var text = $("select[title$='Contract'] :selected").text();
    if(text != "Suspended")
    {
    $("datetime[title$='Date'] ").attr('disabled', true);

    }


    Dare to promise
    • Marked as answer by Emir Liu Tuesday, April 12, 2011 10:36 AM
    Monday, April 4, 2011 3:47 PM

All replies

  • can you please share you Jquery code?

     


    Navdeep Madan
    Monday, April 4, 2011 3:14 AM
  • Have you tried using datetime field instead of textarea?

    var text = $("select[title$='Contract'] :selected").text();
    if(text != "Suspended")
    {
    $("datetime[title$='Date'] ").attr('disabled', true);

    }


    Dare to promise
    • Marked as answer by Emir Liu Tuesday, April 12, 2011 10:36 AM
    Monday, April 4, 2011 3:47 PM