Thanks Ivaylo for quick reply.
The other way I achieved this is with 'Split' function. However thanks for the code snippet.
Also I have one other query for you
Scenario is such that I need to select a value "V1" in Drop-down list "D1" and select value "V2" in Drop-down list "D2"
Both the drop-downs are on same page and they have got same properties and list item values.(Image Attachment Included)
In such cases, how can I select different item values of different drop downs on same page ?