When I click the button the first time, I would like textbox1 to be enabled, but textbox2 and textbox3 disabled, then when I click the button for the second time, textbox2 i
Say like bellow
var count = 0; $('#btn').click(function(){ count = count%3; $('input[type="text"').attr('disabled',true).eq(count++).attr('disabled',false); })
On fourth click it will again enable first input.
DEMO