how to activate the button. If the condition is true, I want to send data through a method (POST).
<script>
$(document).ready(function(){
var count = 0;
if(count == 2)
{
//run form
}
});
</script>
</head>
<body>
<form action = "" method = "post">
<input type = "text" name = "name" />
<input type = "submit" id = "ok"/>
</form>
OR if you dont wanna use form id then