locked
Access Client Side Value on Server Side RRS feed

  • Question

  • User52625461 posted

    Hi All,

    I have filled my drop down list using java script function...

    Problem is that when i am trying to retrieve selected value on server side... Its getting blank....

    I am aware that i have filled on client side and accessing on server side...

    But how to access selected value on server side??

    Tuesday, December 4, 2012 5:07 AM

Answers

  • User541108374 posted

    Hi,

    you can still keep on having one hidden field and put a comma separated list of selected values in it. Another way would be to create a json object and stringify it and put that as the value of the hidden field.

    I created a working sample here: http://jsfiddle.net/KvdM/TbtZ8/. It shows how to dynamically set, add and delete properties on a json object, stringy it and set it as the value of a hidden field.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 4, 2012 7:22 AM

All replies