0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

jQueryの書き方

Posted at
jQueryが苦手すぎるため、備忘録として記録
$(function () {
    // クラス名.on(イベント,function(){
    $(".status_code").on("change", function () {
        let disposal = $('option:selected').val();
        if(disposal == 3){
            $('#disposal_date').attr('readonly',false);
        } else {
            $('#disposal_date').attr('readonly',true);
        }
    });

    $("#asset_type_name").on("change",function(){
        let type_name = $("#asset_type_name").val();
        let type_id = $(`#${type_name}`).html();
    })
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?