+ Start a Discussion
Ranadheer chRanadheer ch 

Onblur is not working with my vf page Why?

Onblur is not working with my vf page Why?


Here Is my Vf Page:


<apex:inputField value="{!File_New_Protest__c.Company_Name__c}" onblur="Company" />


But it is not showing the blur value in my box
SarfarajSarfaraj
Hi 

onblur is an event, which can trigger some javascript code. First of all "Company" can be termed as a javascript code, but this does not perform any visible work. Can you please elaborate what is your objective?

Here are few examples of onblur event handling,
<apex:inputField value="{!File_New_Protest__c.Company_Name__c}" onblur="this.value='Company'" />
<apex:inputField value="{!File_New_Protest__c.Company_Name__c}" onblur="alert(this.value);" />
Let me know if this helps.

--Akram