Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Do try the following:
<script type="text/javascript"> $('[name$=SelectBox]').change(function() { var mySelectedValueId = $(this).find(':selected').val(); $('[name$=SelectedValueId]').val(mySelectedValueId); var mySelectedValueText = $(this).find(':selected').text(); $('[name$=SelectedValueText]').val(mySelectedValueText); }); </script>
Thanks, it worked
i updated the code as
<script type="text/javascript"> $('[name$=Progress]').change(function() { var mySelectedValueId = $(this).find(':selected').val(); $('[name$=SelectedValueId]').val(mySelectedValueId); var mySelectedValueText = $(this).find(':selected').text(); $('[name$=SelectedValueText]').val(mySelectedValueText); $('input[name="Completion"]').val(mySelectedValueId); }); </script>
i did not need the selected text so,
<script type="text/javascript"> $('[name$=Progress]').change(function() { var mySelectedValueId = $(this).find(':selected').val(); $('[name$=SelectedValueId]').val(mySelectedValueId); $('input[name="Completion"]').val(mySelectedValueId); }); </script>
Hi
im having hard time with assigning the value of a selectbox to a textbox.
my select box is called Progress, which have options Stage 1, stage 2 etc.
each stage has a value assigned stage 1 = 0, stage 2 = 10 so on.
and i would like to view the value on textbox called Completion so that use can see the progress numerically.
Also im trying to show the value in the text box when there is a selection made
i have tried this code,
and this
and various other scripts.
in the same form i have other custom html scripts that works for datetimepickers but this seems to not work for me
any help is really appreciated
Thank you