Search code examples
asp.netjquery-uiform-submitserver-side

Disable a jquery tab server side


ASP.NET web form with JQuery UI tabs widget and four tabs. I would like to disable the latest three tabs when i click a submit button.

Thanks!

P.S. I know how to disable tabs in jquery

$( ".selector" ).tabs( { disabled: [1, 2] } );

I don't know how to do it in server side code :)


Solution

  • jQuery is client side. You can't disable it server side.

    What you can do is send that bit of jQuery back to the page from the server on the next page load (or AJAX call).