You need to sign in to do that
Don't have an account?
sandeep reddy 37
using java script and using some global acttion but jquary is working but global is not why please let me know
this is the code bellow
<apex:page sidebar="false" showHeader="false" tabStyle="Account" standardController="Account" recordSetVar="acc">
<script src="https://code.jquery.com/jquery-1.8.2.js"></script>
<script src="https://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css"/>
<script type='text/javascript'>
var j$=jQuery.noConflict();
var names =['ram','sham','praveen','prashant','sham','ramesh'];
j$(document).ready(function(){
j$('[Id$=abcd]').autocomplete({
source : names
});
});
</script>
<script type="text/javascript">
var m =jQuery.noConflict();
m(document).ready(function(){
m("[Id$=srikanth]").hide();
j$('[Id$=p]').change(function(){
var name=m('[Id$=p]').val();
if(name='on'){
m('[Id$=srikanth]').show();
}
});
});
</script>
<apex:form >
<div>
<apex:tabPanel id="first" styleClass="one">
<apex:tab title="about" label="aboutus" />
<apex:tab title="custmercenter" label="custmercenter" />
<apex:tab title="csr" label="csr"/>
<apex:tab title="personal" label="personal" styleClass="two" >
<apex:image value="{!$Resource.hdfc}" height="50px" width="180px" />
<hi style="font-size:20px; color:red; " > bank aapiki muttai mein</hi>
<apex:tabPanel >
<apex:tab label="home"/>
<apex:tab label="products"/>
<apex:tab label="making payments"/>
<apex:tab label="waytobank"/>
<apex:tab label="smatrbye"></apex:tab>
<apex:tab label="cuatmercare"/>
<apex:tab label="applynow">
<apex:pageBlock title="apply for lonss">
<apex:pageBlockTable value="{!acc}" var="ac"></apex:pageBlockTable>
<apex:outputLabel value="firstname" ></apex:outputLabel>
<apex:inputText label="firstname" maxlength="50" id="abcd" value="{!ac.name}" /><br/><br/>
<apex:inputText label="lastname" maxlength="20" id="abc" value="{!ac.SLASerialNumber__c}" />
SHOW:<apex:inputCheckbox id="p" />
</apex:pageBlock>
<apex:pageBlock title="personal details" id="srikanth">
<apex:pageBlockTable value="{!acc}" var="ca"></apex:pageBlockTable>
<apex:outputLabel value="phone no" ></apex:outputLabel>
<apex:inputText id="a" value="{!ca.Phone}" /><br/><br/>
<apex:outputLabel value="password"></apex:outputLabel>
<apex:inputSecret id="b" value="{!ca.pass__c}" />
</apex:pageBlock>
<apex:commandButton value="save" action="{!URL(!$action.Account.save;)}" />
</apex:tab>
<apex:tab label="find your nearest"/>
</apex:tabPanel>
</apex:tab>
<apex:tab title="premier" label="premier" />
<apex:tab label="NRi"/>
<apex:tab label="sme"/>
<apex:tab label="holesale"/>
<apex:tab label="agri"/>
</apex:tabPanel>
</div>
<style>
.one{
background-color:skyblue;
}
.two{
backgroung-color:yellow;
}
</style>
</apex:form>
</apex:page>
please infofrm me urgently
<apex:page sidebar="false" showHeader="false" tabStyle="Account" standardController="Account" recordSetVar="acc">
<script src="https://code.jquery.com/jquery-1.8.2.js"></script>
<script src="https://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css"/>
<script type='text/javascript'>
var j$=jQuery.noConflict();
var names =['ram','sham','praveen','prashant','sham','ramesh'];
j$(document).ready(function(){
j$('[Id$=abcd]').autocomplete({
source : names
});
});
</script>
<script type="text/javascript">
var m =jQuery.noConflict();
m(document).ready(function(){
m("[Id$=srikanth]").hide();
j$('[Id$=p]').change(function(){
var name=m('[Id$=p]').val();
if(name='on'){
m('[Id$=srikanth]').show();
}
});
});
</script>
<apex:form >
<div>
<apex:tabPanel id="first" styleClass="one">
<apex:tab title="about" label="aboutus" />
<apex:tab title="custmercenter" label="custmercenter" />
<apex:tab title="csr" label="csr"/>
<apex:tab title="personal" label="personal" styleClass="two" >
<apex:image value="{!$Resource.hdfc}" height="50px" width="180px" />
<hi style="font-size:20px; color:red; " > bank aapiki muttai mein</hi>
<apex:tabPanel >
<apex:tab label="home"/>
<apex:tab label="products"/>
<apex:tab label="making payments"/>
<apex:tab label="waytobank"/>
<apex:tab label="smatrbye"></apex:tab>
<apex:tab label="cuatmercare"/>
<apex:tab label="applynow">
<apex:pageBlock title="apply for lonss">
<apex:pageBlockTable value="{!acc}" var="ac"></apex:pageBlockTable>
<apex:outputLabel value="firstname" ></apex:outputLabel>
<apex:inputText label="firstname" maxlength="50" id="abcd" value="{!ac.name}" /><br/><br/>
<apex:inputText label="lastname" maxlength="20" id="abc" value="{!ac.SLASerialNumber__c}" />
SHOW:<apex:inputCheckbox id="p" />
</apex:pageBlock>
<apex:pageBlock title="personal details" id="srikanth">
<apex:pageBlockTable value="{!acc}" var="ca"></apex:pageBlockTable>
<apex:outputLabel value="phone no" ></apex:outputLabel>
<apex:inputText id="a" value="{!ca.Phone}" /><br/><br/>
<apex:outputLabel value="password"></apex:outputLabel>
<apex:inputSecret id="b" value="{!ca.pass__c}" />
</apex:pageBlock>
<apex:commandButton value="save" action="{!URL(!$action.Account.save;)}" />
</apex:tab>
<apex:tab label="find your nearest"/>
</apex:tabPanel>
</apex:tab>
<apex:tab title="premier" label="premier" />
<apex:tab label="NRi"/>
<apex:tab label="sme"/>
<apex:tab label="holesale"/>
<apex:tab label="agri"/>
</apex:tabPanel>
</div>
<style>
.one{
background-color:skyblue;
}
.two{
backgroung-color:yellow;
}
</style>
</apex:form>
</apex:page>
please infofrm me urgently
sandeep reddy 37
ok i got it