Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".selectan").on("change", function(){ // Saat .selectan diubah valuenya
- if($(this).val() == 1){ // Jika .selectan memiliki nilai 1
- $("#select").show(); // select dihide
- $("#text").hide(); // text dishow
- }else{ // Jika sebaliknya
- $("#select").hide(); // select dishow
- $("#text").show(); // text dihide
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement