Jump to content
php.lv forumi

Recommended Posts

Posted

Kā var noņemt ul un li tās atkāpes nost?

Piemēram, man ir -

<p>Sss</p>

<ul>

<li>Teksts</li>

</ul>

viņš izvada, kā sarakstu -

Sss

     	teksts

Kā, to tabošanu noņemt, nost (saraksta stilu(nevis list-style-type: ...; bet tabošanu)).

Posted

var $j = jQuery.noConflict();
$j(document).ready(function() {

   $j('#snav ul li.selected ul').show().addClass('visible');

   //accordion
   $j('#snav h3').click(function(){
  	 if ( $j(this).siblings('ul').is(':visible') ) {
  		 $j(this).siblings('ul').slideUp(400).removeClass('visible');
  	 } else {
  		 // added to close open :visible elements
  		 $j('#snav h3').siblings('ul').slideUp(400).removeClass('visible');
  		 $j('#snav .visible').slideUp(400).removeClass('visible');
  		 $j(this).siblings('ul').slideDown(400).addClass('visible');
  	 }
   });

 

Viņiem bija šāds js skripts, bet pievienojot gan jquery bibliotēku, gan šo visu skriptu - (barco.js), tāpat visi li ir visible no sākuma, un spiežot nekas nenotiek.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...