2024-04-19

Expand all codes' textboxes in html, to be saved in local.


csdn.net

Expand all codes' textboxes in html, to be saved in local.



$( ".look-more-preCode" ).each( function(index){
console.log( $( this ).parent().parent().parent().data( "index" ) );
$( this ).click();
});


















jQuery tick all checkboxes by jQuery selector by id start with








$( "[id^=MainContent_ddlLeaveType_]" ).each( function(index){
console.log( $( this ).attr( "id" ) );
$( this ).prop( "checked", true );
});