JSFiddle - React, Tailwind, and code Playground

HTML

<form name="form1">
    <input type="text" id="textfield" value="1">
    <input type="text" id="textfield2" value="2">
    <input type="text" id="utype" value="3">
    <input type="submit" id="button" value="submit">
</form>

JavaScript

jQuery(document).ready(function(){
    $("#button").click(function() { 
            var email_id=document.getElementById('textfield').value;
            var password=document.getElementById('textfield2').value;
            var utype=document.getElementById("utype").value;
    var url="login_check.jsp?&email_id="+encodeURIComponent(email_id)+"&password="+encodeURIComponent(password)+"&utype="+encodeURIComponent(utype);
            $('form').get(0).setAttribute('action',url);  
        alert(document.form1.action); 
        return false;
    });
});