How I can uncheck checkbox when both of my inputs [type=text] cleared or empty?

How I can uncheck checkbox when both of my inputs [type=text] cleared or empty?

How I can uncheck&nbsp;input&nbsp;of type&nbsp;<strong>checkbox</strong>&nbsp;when both of my&nbsp;inputs of type&nbsp;<strong>text</strong>&nbsp;are empty, and checked if one of my&nbsp;inputs of type&nbsp;<strong>text</strong>&nbsp;is filled?

How I can uncheck input of type checkbox when both of my inputs of type text are empty, and checked if one of my inputs of type text is filled?

$('input[name="t2"],input[name="t3"]').keyup(function() {
  $('input[name="t1"]').prop("checked", $.trim($(this).val()).length != 0);
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<input type="checkbox" name="t1" /> Price range from: <input type="text" name="t2" /> to <input type="text" name="t2" />

 Run code snippetExpand snippet

JSFiddle : here in this link

It executes correctly when I type something on any input type text(checkbox checked), but not working when I clear both of fields, because the checkbox unchecked when only one of inputs clear. Would you please help me solve this? Thank you

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Understand and Use JavaScript's .forEach() vs. jQuery's .each()

There are two functions to deal with an array on the client-side – JavaScript's .forEach() and jQuery's .each(). Here, I will teach you how to use both of these methods with some sample code.

jQuery vs Vanilla JavaScript - Beau teaches JavaScript

When should you use jQuery instead of vanilla JavaScript? Is jQuery still relevant? What is jQuery good for? jQuery vs vanilla JavaScript - Beau teaches JavaScript

Multiple form submit upon last form PHP

I am working on a web application using PHP and sql on localhost using wamp server.