Agregar parámetros a elementos de visual composer usando JavaScript

$('.centroDeAplicaciones').on('click', function(){ if ($('.ult-overlay').hasClass('ult-open')) { $('.centroDeAplicaciones').removeClass('overlay-show'); }else{ $('.centroDeAplicaciones').addClass('overlay-show'); } var selector = ".centroDeAplicaciones"; $(selector).attr("data-vc-tabs", ""); $('.centroDeAplicaciones').click(function(e){ $('.centroDeAplicaciones').removeClass('metroIconActive'); $(this).addClass('metroIconActive'); }); }); /* https://stackoverflow.com/questions/14750544/if-hasclass-then-removeclass-on-click (function($){ $(document).ready(function(){ var selector = ".servicios_digitales"; $(selector).addClass("custom-ult-modal overlay-show"); $(selector).attr("data-class-id", "content-5c3c9a64a3a1a8-13975264"); $(selector).attr("data-overlay-class", "overlay-slideleft"); $(selector).attr("data-keypress-control", "keypress-control-enable"); $(selector).attr("data-overlay-control", ""); }); */

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.