function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Salesforce GeevanSalesforce Geevan 

i tried to search values from a object without command button,while typing in the textbox itself,it should return the record..

My code is 
public class  SearchNoButton{
public String find { get; set; }
public list<Customer__c> cuslist{get;set;}
public String searchtext{get;set;}

public string s ;
public void find()
cuslist=new list<Customer__c>();
s  = '%' + searchtext  + '%'; 

[select Name,Name__c,Status__c,age__c from Customer__c where Name__c LIKE : s];



visualforce page:
<apex:page controller="SearchNoButton" action="{!find}">
<apex:pageblock title="search Customer">
<apex:form Rendered="{!find}">
name  <apex:inputtext value="{!searchtext}" Rendered="{!find}"/>
<table border='1' width='100%'>
  <apex:repeat value="{!cusList}" var="a">

Marcilio SouzaMarcilio Souza

Try to follow this example:
<apex:page controller="AjaxWildcardController">
    <apex:form >
        <apex:pageBlock >
            Type Account Name Here :
            <apex:inputText value="{!inputtext}" >
            <apex:actionSupport action="{!actionSupMethod}" event="onkeyup" reRender="outptText" />
        <apex:pageblock >
            <apex:pageblocktable value="{!accList}" var="acc" id="outptText">
                <apex:column value="{!}"/>
                <apex:column value="{!acc.accountnumber}"/>
public class AjaxWildcardController {
Public string inputtext{get;set;}
    Public List<account> accList{get;set;}
    Public boolean flagshow{get;set;}
    Public AjaxWildcardController(){
    flagshow = false;
    Public void actionSupMethod(){
      accList = database.Query('select name,accountnumber from account where name like '+'\''+'%'+inputtext+'%'+'\'');

Please, If this anwser help you mark as the best