I'm wondering how to achieve this via custom web part and JavaScript
I'm looking for a way on how to limit the dropdown status based on its current state. For example I have status: Start, On-Going, Completed and Pending
the initial status of Start must only have On-Going as its option.
jQuery - $('#idofyourdropdown option[value="On-Going"]'');
OR
$('#idofyourdropdown option:contains("On-Going")');
OR using index asssuming On-Going is hte first option
$('#idofyourdropdown option:eq(1)').prop('selected', true);
OR even this
$('#idofyourdropdown').val('On-Going');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.