How to retrieve the value of selected radio button

Lak Munnu April 30, 2014

Hi

I am struggling to retrieve the value of a radio button using scriopt in the derscription field. What is the correct way to retrieve the selected radio button value.

Thanks,

Lakshmi

2 answers

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 2, 2014

Hi Lak,

here your javascript code

jQuery(document).ready(function($) {
    var value = jQuery("#customfield_10200-val").text().trim();
    console.log(value);
})

Keep in mind that you have to use the correct Custom Field Id (10200 is the id in my instance).

Hope this helps,

Fabio

Lak Munnu May 7, 2014

Thanks Fabio. I will try and let you know.

Lakshmi

0 votes
Eva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2014

Which version of JIRA? Also,are you runnig the script inside of the workflow (post-function)?

Suggest an answer

Log in or Sign up to answer