JQuery or Javascript solution for selecting default value in drop down

Posted by user1446843 on Stack Overflow See other posts from Stack Overflow or by user1446843
Published on 2012-06-17T03:10:37Z Indexed on 2012/06/17 3:16 UTC
Read the original article Hit count: 103

Filed under:
|

I have a calender list in a webpart page, this webpart page has a version number in it's title e.g. "WebPart 1.62".

What I need to do is when a New item is created in the calender list on a webpart page, the New Item form has a dropdown menu 'SystemID' which gets it's values from the title column of a 'Systems' list, which is pre-populated with all versions of webpart forms. This dropdown menu 'SystemID' should select the version of the webpart page it is in as the default value.

I need a JQuery solution for this, or even Javascript. I am finding it difficult as I am new to both JQuery and Sharepoint. I am using SP2007. I'll appreciate any guidance in solving this.

At the moment the Create New Item form of the Calender list has the 'SystemID' drop down list pre-populated with the versions from the Systems list.

If anyhthing is unclear pls let me know and I'll explain in more detail.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery