Question

Photo of Amit K

0

How may i clear PersonPicker selection using jQuery or javascript without PostBack?

How may i clear PersonPicker selection using jQuery or javascript without PostBack?

  • Photo of David Stevens

    0

    You should probably inspect the DOM of the block you're working with, all the information you need to manipulate the person picker is there.  In this case clearing the hidden field value with class `js-person-id` and clearing the text label has the same effect as a postback for _btnSelectNone in the PersonPicker control:

    https://github.com/SparkDevNetwork/Rock/blob/develop/Rock/Web/UI/Controls/Pickers/PersonPicker.cs