EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: varonica on August 23, 2012, 01:43:10 AM



Title: Tab's property
Post by: varonica on August 23, 2012, 01:43:10 AM
Hi, admin
   i'm here again :D and trouble with tab. All i want to achieve is to set tab's property "selected" to true using jquery!!
Example:
  
   
Code:
$('tab1').attr/prop('selected',true);


 is that correct ? or is there any method to do so ? :( plz help me!!!! :-[



Title: Re: Tab's property
Post by: stworthy on August 23, 2012, 02:31:53 AM
To select a special tab panel, please call 'select' method.
Code:
$('#tt').tabs('select', 1);  // select the second tab panel


Title: Re: Tab's property
Post by: slvu on August 23, 2012, 03:04:19 AM
hi, i have problems with tabs .  See http://www.jeasyui.com/forum/index.php?topic=602.0

pls help me~ thank you


To select a special tab panel, please call 'select' method.
Code:
$('#tt').tabs('select', 1);  // select the second tab panel


Title: Re: Tab's property
Post by: varonica on August 23, 2012, 05:55:39 PM
thz for ur answer, i'll read more documentation before post question here :)