You need to sign in to do that
Don't have an account?

Jquery is not working as expected in visualforce
i am writing a visualforce in which i am using dynamic components my visualforce code is
<apex:pagetitle="Salesforce SOQL Offset Example Using Visualforce"standardStylesheets="false"controller="dynamic_visualforce_with_soql_offset"sidebar="false"readOnly="true"cache="false"showHeader="false"><scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><scriptsrc="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script><scripttype="text/javascript">$(function(){$("[id$=prev]").click(function(){alert('Hello World');});});</script><apex:sectionHeadersubtitle="SOQL Offset Example w/Dynamic Page Buttons"title="Square Root Table"/><apex:form><apex:pageBlock><apex:actionFunctionaction="{!refreshGrid}"name="queryByPage"reRender="myPanel,myButtons"><apex:paramname="firstParam"assignTo="{!selectedPage}"value=""/></apex:actionFunction><apex:dynamicComponentcomponentValue="{!myCommandButtons}"/><apex:pageBlockSectiontitle="Numbers and their Square Roots (Total List Size: {!total_size})"collapsible="false"><apex:outputPanelid="myPanel"><apex:pageMessagesid="theMessages"/><apex:pageBlockTablevalue="{!numbers}"var="n"align="center"><apex:columnvalue="{!n.Id}"/><apex:columnvalue="{!n.Name}"/><apex:facetname="footer">Showing Page # {!pageNumber} of {!totalPages}</apex:facet></apex:pageBlockTable></apex:outputPanel></apex:pageBlockSection></apex:pageBlock></apex:form></apex:page>
and segment for generating dynamic component is
the segment for generating dynamic ocmponent is
but when i try to click on previous button it is not showing an alert