Is it valid to use jquery script under custom field control descirption.
I've added text input custom field and updated it's descrition as below to fetch one of the text input value.
<script type="text/javascript"> alert(document.getElementById("customfield_10100:input1").value); //works fine alert(AJS.$("input#customfield_10100:input1").val()); // not worked
alert(AJS.$("#customfield_10100:input1").val()); // tried this also, not worked
</script>
as above, if i use javacsript to fetch the value then i can get correct value in alert but its not giving me 'undefined' when i use jquery AJS.$(....).
any idea ?
found resolution, have to use as below ... additionl chars '\\' for colon.
AJS.$("#customfield_10100\\:input1").val());
Thanks
Hi
want to assign current page in Custom field value am using a text field as custom field in Jira Widget
please Help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
there is a cascading custom field and in firebug , it shows id value as "customfield_10100:input1"
so, i can get alert for correct value while using javascript document object but not getting while using AJS.$.. not sure, what can be the cause.
Using JIRA - 5.2.11 stand alone
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try this alert(AJS.$("#customfield_10100").val());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.