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
Nag22Nag22 

Javascript is not working in IOS device and its working fine with Android (Salesforce1)

Hi ,

I have written hide functionality in my visualforce page  based on redio buttons YES/No selection, if YES one block will be displayed.
For that I have used below code .
function ShowHideNo(divId,val)
        {
       
            if( val  == 'Yes' )
            {
                document.getElementById(divId).style.display='block';
            }
            else
            {
                document.getElementById(divId).style.display = 'none';
            }
        }

The above code is working fine with android devices but incaseo of
IOS when ever I selected 'Yes' it refreshes to top of the page. But in android devices its not happening like that its working perfectly.

it needs to work IOS devices as well, how can I get rid of this conflict , anyone know please let me know.
Ramu_SFDCRamu_SFDC
As per the below article the application has to be converted to Hybrid to make use of different technologies. see if that helps

https://developer.salesforce.com/en/mobile/getting-started/ios