{"id":36989,"date":"2015-05-08T09:41:26","date_gmt":"2015-05-08T09:41:26","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/ayuda-con-jquery\/"},"modified":"2016-08-06T00:40:27","modified_gmt":"2016-08-06T00:40:27","slug":"ayuda-con-jquery","status":"closed","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/ayuda-con-jquery\/","title":{"rendered":"Ayuda con jQuery"},"content":{"rendered":"<p>Hola a tod@s.<br \/>\nQuiero hacer con jQuery un toggle que por defecto ponga en el bot\u00f3n: \u00abver precios\u00bb y al hacer clic cambie a:\u00bbcerrar precios\u00bb para que la gente entienda c\u00f3mo cerrarlo. Pero no lo consigo, s\u00f3lo puedo dejar el texto por defecto. C\u00f3mo puedo hacerlo? Gracias de antemano.<br \/>\nEste es mi c\u00f3digo:<\/p>\n<p>&lt;script&gt;<br \/>\n     jQuery(document).ready(function () {<br \/>\njQuery(&#8216;.click&#8217;).on(&#8216;click&#8217;, function(e){<\/p>\n<p>    jQuery(\u00ab.precios\u00bb).toggle();<br \/>\n    jQuery(this).toggleClass(&#8216;class1&#8217;, 1000, \u00abeaseOutSine\u00bb)<br \/>\n});<br \/>\n         });<br \/>\n&lt;\/script&gt;<\/p>\n","protected":false},"template":"","class_list":["post-36989","topic","type-topic","status-closed","hentry","topic-tag-jquery"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/36989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/36989\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=36989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}