I\'m working on a simple login form, with two fields:
Simple, just add the novalidate property to any element you don't want the browser to validate, like so:
Since you wish to only cancel validation when JavaScript is available, add it with JavaScript (using jQuery for simplified example)
$('input[novalidate]').attr('novalidate', 'novalidate');