So, if you want the answer to your question, yes, it can be done in one line with jQuery. There is very little reason to do it in one line as single lines are executed more or less the same way that multi-line solutions are. In jQuery, it would look like this:
$('#ip1').val('').prop('disabled', false);
With vanilla javascript, a multi-line solution is required:
document.getElementById('ip1').value = '';
document.getElementById('ip1').disabled = false;
You can also bind two separate function to the onclick if you want:
<button onclick="doSomething();doSomethingElse();" />
For example:
<button onclick="document.getElementById('ip1').removeAttribute('disabled');document.getElementById('ip1').value='';">Click</button>
If you are trying to save space or be more efficient, you should just iterate through the elements using a class or something.