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
beginner apexbeginner apex 

I have Jquery visualforce code but its not working

 <apex:page sidebar="false">

        <script src="{!URLFOR($Resource.iVol_Resources, '/js/jquery_latest.js')}"></script>
        <script src="{!URLFOR($Resource.iVol_Resources, '/js/jquery-ui-git.js')}"></script>
        <script type="text/javascript"/>
        <script type="text/javascript">
            var $jq = jQuery.noConflict();
            jq$(document).ready(function()
            {
                 jq$("#ton").click(function(){
    jq$("p").remove(".italic");
  });
});
</script>

<body>

<p>This is a paragraph in the div.</p>
<p class="italic"><i>This is another paragraph in the div.</i></p>
<p class="italic"><i>This is another paragraph in the div.</i></p>
<button id="ton">Remove all p elements with class="italic"</button>

</body>
</apex:page>

 

 

Hi,

This is my code , but i implemented in Visualforce Page but its not working , no errors ,,,

but static resources stored ivol_resources

can u anyone help me ....

 

 

Regards,

Ganz

Devender MDevender M
Hi paste this script

&lt;script type="text/javascript">
var $jq = jQuery.noConflict();
$jq(document).ready(function()
{
$jq("#ton").click(function(){
$jq("p").remove(".italic");
});
});
&lt;/script&gt;