Home > jquery > html5 link in jquery script

html5 link in jquery script

March 11Hits:0

I need to trasform this lines of jquery script

<a style="color:'+settings.linkColor+';font-weight:bold;';html+='font-family:'+settings.fontFamily+';font-size:'+settings.fontSize+';" href="'+settings.privacyPolicyUri+'">'+settings.privacyPolicyLinkText+'</a> 

implementig class & ID of the following html link code

<a class="js-open-modal ctn" href="#" data-modal-id="popup1">Website Privacy Policy</a> 

to call a third jquery script that open a pop up.

Tried to .addClass() and $('#element').attr('id'); but nothing working...


Tags:jquery, html5

Related Articles

  • html5 link in jquery scriptMarch 11

    I need to trasform this lines of jquery script <a style="color:'+settings.linkColor+';font-weight:bold;';html+='font-family:'+settings.fontFamily+';font-size:'+settings.fontSize+';" href="'+settings.privacyPolicyUri+'">'+settings

  • What's the correct way to include files in Wordpress TwentyTen theme with it's own jquery scripts and css?April 11

    I want to include a slider in the default Wordpress theme on the home page. I did manage to get the page to show using <?php if ( is_home() ) { include ('slider.php'); } ?> but it doesn't look like it's loading the jquery script it needs or the styl

  • jQuery script to clear input fieldsDecember 8

    I've been trying to write a jQuery script where when someone clicks on the input the space clears and then if they don't type anything in, it reappears. This is what I came up with. Is there a better way to do this? If so why is it better? $(document

  • Using GPL licensed jQuery scripts on website with adsDecember 19

    I'm making a web application that will generate revenue from displaying ads. The system is meant for me to run and not sold/distributed to anyone else. My questions are: Can I use GPL licensed jQuery scripts on the website? Can I use GPL licensed scr

  • Remove jquery script October 6

    Possible Duplicate: How do I update jQuery to the latest version I can download? In Firefox I get an unresponsive script error from Google hosted jquery but can't echo the problem on other browsers. I just looked at the source of drupal and it's load

  • How do I wrap 3rd party jquery scripts so that they work in wordpress?May 12

    I'm trying to include a jQuery autocomplete script in the header.php file of my theme. The script, outside of wordpress, works great using this structure (which is the same as the jQuery autocomplete demo): <script> $(function() { ..... }); </scr

  • How do I translate string inside jQuery script with WPML?September 24

    I've made this script for changing some colors on a custom element. My problem is that I can't find a way to localize the links in the href attribute. Is there an easy way for me to do this? /* Wilfa Svart Color Change Function */ jQuery(document).re

  • JQuery is not defined but jquery script is loaded in source July 25

    I'm new to Wordpress and I'm trying to use JQuery on a static home page. I'm getting the infamous "Uncaught ReferenceError: JQuery is not defined" error, although in the page source the JQuery script is loaded. In my theme's functions.php : func

  • What does "Do not deregister the jquery script in the administration area" mean?November 2

    We all know the advantage of using cdn caching etc.. For that sake i deregistered the script and registered jquery with cdn link . But the problem is that it is showing error like this Yes Debugging in wordpress is turned on. It shows error like this

  • Scrolling Jquery script not working in Firefox but works in chromeJanuary 22

    I am having trouble with a jquery script which I wrote myself(I am new to jquery so I am still learning.) Basically what I am trying to do is fade in 3 blocks of images with a description as you scroll down the page. Problem is, it works in Chrome an

  • show/hide div with simple jQuery scriptFebruary 1

    I want to show/hide contents by using radio buttons on a WordPress page. When a user clicks on the radio button with label "red", the corresponding div with the class "red" needs to show up. Here's the (working) example I'm trying to i

  • Is there a canonical book on creating highly interactive websites (eg. "Flash" like) with HTML5/CSS3/JS/jQuery? February 24

    I know some of the basics of these technologies already, but it is mostly limited to more static sites. Using things like HTMl5 semantic elements, CSS3 gradients, shadows, @font-face etc. Is there a book out there that's the de-facto standard for des

  • Reduce Your jQuery Script Loading Times

    Reduce Your jQuery Script Loading TimesMay 4

    Hi guys, I've stumbled upon a jQuery script that reduces the loading time of your JavaScript include files. It works by loading all your dot js files at the same time inside an array. I've tried the tests out and it does seem to load much quicker tha

  • Trying to remove duplicate jquery scriptsSeptember 3

    I've added this <?php wp_enqueue_script("jquery"); ?> before <?php wp_head(); ?> so that I can just use the wordpress included jquery script, and deleted the extra jquery script I've been loading, but when I go to Inspect Element in

  • How to Run a jQuery Script after a Javascript Script has Finished in WordPressSeptember 29

    I've got javascript (a) and jQuery script (b). I need (b) to run after (a) has finished running. I need them to run sequentially. How do I do that? In wp_enqueue_script, I've made (b) dependent on (a), but it appears that (b) runs before (a) has fini

  • How can i reload jQuery scripts after form submit in views using ajax?March 3

    I have a views with ajax enabled using B.E.F. to filter some content. After submitting these filters jquery scripts stop working. Please help me to find an answer how to reload any of these scripts after using submit button with ajax? I`ve tried to d

  • WebDriver: Can I inject a jQuery script for a page that isn't using jQuery?March 27

    Is it possible to inject a jQuery script into a page if the page isn't already using jQuery? We have a few pages in our sites where we don't add jQuery if it doesn't need it, but I'm using it to automate the page with WebDriver. I don't want to test

  • Need help with adding jQuery script to WP and calling script to pageMarch 31

    I've written a pretty simple jQuery script, and I don't know how to call it. It's in its own directory. First, how do I register it, and then how do I enqueue it? I assume that's the order it's done in, and that registering it basically means that it

  • Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this pluginDecember 27

    I'm trying to add Highstock chart in my plugin. It requires input data in json format. But I have some troubles with default json parser in jQuery. I've already read this article, but still can't understand how can I add the chart in the plugin. Can

  • Print edit/create/delete node link with jQuery

    Print edit/create/delete node link with jQueryFebruary 7

    Been searching for a while so I came here to ask... How can I print edit/create/delete node links with jQuery? I just want to show the links when I hover over the < li >'s. I already have the hover code... So I really just need to code to get the ed

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.611 s.