Why do you want to use cookies? This is better implemented by storing the value 
in the browser's local storage.

Example: 
https://github.com/jenkinsci/data-tables-api-plugin/blob/831d74b746337e6990c6aae5bff2591b2308103d/src/main/webapp/js/table.js#L148

 

> Am 22.05.2023 um 16:36 schrieb Michael Carter <mikeycarter1...@gmail.com>:
> 
> Got a page with some <f:select> with filldependson set.   Trying to use 
> cookies to remember the last selection.
> 
> So few questions.  Is there an example of this I can follow in some plugin 
> somewhere?  
> 
>  I can use jquery to select using 
> 
> jQuery('#object').val(cookie.select1)
>               .trigger("change")
> 
> It selects the object but can't seem to get it to trigger the dependant fill 
> for the next object.  What event is it listening triggering on?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-dev+unsubscr...@googlegroups.com 
> <mailto:jenkinsci-dev+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/67cb3eb3-f2bb-49a4-959d-57683083a3den%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/67cb3eb3-f2bb-49a4-959d-57683083a3den%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/771EA298-0223-428C-B79A-7BA0B674AC38%40gmail.com.

Reply via email to