What is wrong with my jquery javascript here? -


So I'm trying to create a page in Visualforce (salesforce's page builder), and problems with JavaScript aspect It's been What will happen is that this section will generate a series of links. Javascript is required to click on those links I am using jquery

   & Lt; / Supreme: Repeat & gt; & Lt; Top: Included script value = "{URLFOR ($ resource .jquery, 'js / jquery-1.4.2.min.js')}" /> & lt; Script type = "text / javascript" & gt; Var j $ = jQuery.noConflict (); J $ (document) .ready (function () {var anchortags = j $ ('name'); for (i = 0; i & lt; = anchortags.length; i ++) {var current tag = encartag [I]; current tag trigger (click); warning ("your mother");}}); & Lt; / Script & gt; & Lt; / Supreme: Page & gt;  

Answer your exact question, this: currentTag.trigger (clicks) Please); should be: currentTag.trigger ('click');

But, come on, jQuery can do all this for you one shot:

$ ('. '). Click ();

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -