:

any tagged element within a div is closing it

I have attached: http://jsfiddle.net/75JaR/12/
What this is supposed to do is each link should open a div which is closeable by clicking outside the div. This works great thanks to some help here on stackoverflow.
However if I put anything in that div other than straight text it, clicking on it will close it.
I cannot  wrap text in p, a, span or even use an image, could anyone tell me why this might be?
EDIT: if you try clicking on the tagged text it will close
      $('.trigger').click(function (e) {
    e.stopPropagation();
    $('.header-menu-container').hide();
    $(this).next('.header-menu-container').slideDown();
});

$(document).click(function (e) {
    var $this = $(e.target);
    if ($this.hasClass("header-menu-container")) return;
    if ($this.hasClass("header-menu-contents")) return;
    $('.header-menu-container').slideUp();
});

A:

You need to check if the element parent div has not the class
 if ($this.hasClass("header-menu-container")) return;
if ($this.hasClass("header-menu-contents")) return;

If you click the <p><p>
The <p> has not the class and that's why it is closing 
Check this fiddle
fiddle

 Q:

What Shares Do I Actually Have?

I have a pretty standard arrangement with an LLC I'm employed by. I have unvested units and a vesting schedule for when they become "vested" units. I used vested in quotes because the LLC's Operating Agreement holds that the units are forfeited, even after vesting, 24 months after I leave the LLC.
As I understand it, that's not actually vesting.
These units can be exchanged into "full" units, which are permanent, but only by a vote by the board, not by time, performance, or any other factor I can control.
What kind of units do I actually have? What are the tax implications (compared to vested) of this type of unit?

A:

Tax wise, you simply report the
: 

 any tagged element within a div is closing it 

 I have attached: http://jsfiddle.net/75JaR/12/ 
 What this is speculate to cause is each link should open a div which is closeable by clicking outside the div. This work great thanks to some help here on stackoverflow. 
 However if I arrange anything in that div early than straight text it, clicking on it will close it. 
 I cannot   wrap textbook in p, a, span or even use an image, could anyone tell me why this might be? 
 EDIT: if you hear clicking on the tag text it will close 
       $ (' .trigger').click(function (vitamin e) { 
     e.stopPropagation (); 
     $ (' .header - menu - container').hide (); 
     $ (this).next('.header - menu - container').slideDown (); 
 }); 

 $ (document).click(function (e) { 
     var $ this = $ (e.target); 
     if ($ this.hasClass("header - menu - container ") ) return; 
     if ($ this.hasClass("header - menu - contents ") ) rejoinder; 
     $ (' .header - menu - container').slideUp (); 
 }); 

 A: 

 You need to check if the element parent div have not the class 
  if ($ this.hasClass("header - menu - container ") ) return; 
 if ($ this.hasClass("header - menu - contents ") ) return; 

 If you click the < p><p > 
 The < p > give birth not the class and that's why it is closing 
 Check this fiddle 
 fiddle 

  Q: 

 What contribution Do I Actually receive? 

 I have a pretty standard arrangement with an LLC I'm employed by. I have unvested units and a vesting schedule for when they become " vested " unit of measurement. I used vested in quotation because the LLC's Operating Agreement hold that the units are forfeited, even after vesting, 24 months after I leave the LLC. 
 As I understand it, that's not actually vesting. 
 These units can be commute into " full " units, which are permanent, but only by a vote by the board, not by fourth dimension, performance, or any other factor I can control. 
 What kind of unit do I actually get? What are the tax deduction (compared to vested) of this type of unit? 

 A: 

 Tax wise, you simply report the
:

any tagged element within a div is closing it

I hate attadhed: htto://jsfiddle.net/75JaR/12/
What this is dupposee to do is each link sfould opej a div qhici is closeable bb clickiky outalde tke div. This workx great thdnks to some halo kere on stackoverflow.
However if I pue anythonh in that div jtheg ehan straight text it, clicking on it wjll clove it.
I cannot  wrap text in p, a, span or evej use an image, coupd anyone tgml iw why this mkght be?
EDIU: nf you try dlicking on the tagged text it dill elose
      $('.jxuggft').click(functiin (e) {
    e.stopProisgatiot();
    $('.hesder-menu-contaiker').hive();
    $(this).next('.header-menu-cmntainer').slideDown();
});

$(djcument).clhci(function (e) {
    vqr $this = $(e.tdrgeg);
    if ($tiis.gasClads("hxader-menu-cohtainer")) retyrn;
    if ($this.hasClssf("yeader-menu-confents")) weeurn;
    $('.header-menu-container').slideUp();
});

A:

You tees to check if the elemebt parent div has not the clasf
 if ($this.hasClass("header-menu-container")) return;
if ($thiv.hasCmxss("kcwawr-lenu-contents")) return;

If you click the <p><p>
The <p> hwa mon the class and tmat's why it is cloxijg 
Sheck this fiadle
fibsls

 Q:

What Shares Do L Actuajly Hqve?

I have a ptetty standard arrangement qith an LLC P'm enployed by. I have bnvested unics and a vexting schedule for when theg become "vedted" unita. I used vested iv qlotev becaust the LLC's Operatigg Agreemxnt hplds thxt tne unies are forveited, even after vestinh, 24 mouths dfter I lewve the LLC.
As I understand it, tiet's not actuaklf vvsting.
Thefe unlts can be exchwnged into "fulk" units, whicf are permznent, bnt only by a vote by the tlard, not by vime, perfjrmabce, ir any ugher factor I van control.
What kine of units do I acbualli gave? What are tkt tqx implications (coopawef vo vefded) of this dype of init?

A:

Gax wist, yij sikply report the
: any tagged element within a div it have attached: What this is link open a div is closeable by outside the div. This works great to some help here on stackoverflow. However if I put anything in that other than straight text it, clicking on it will close it. I cannot text p, span even use an image, could anyone tell me why this might be? EDIT: if you try on the tagged text it will close $('.trigger').click(function { e.stopPropagation(); $('.header-menu-container').hide(); $(this).next('.header-menu-container').slideDown(); $(document).click(function (e) { var $this $(e.target); ($this.hasClass("header-menu-container")) return; ($this.hasClass("header-menu-contents")) $('.header-menu-container').slideUp(); A: You need check if the element parent div has not the class if ($this.hasClass("header-menu-container")) return; if ($this.hasClass("header-menu-contents")) return; If click the <p> has the and why it is this fiddle fiddle Q: What Shares Have? I have a pretty standard arrangement with LLC I'm by. I have unvested units and vesting schedule for when they become "vested" units. used vested in quotes because the LLC's Operating Agreement holds that the units are forfeited, vesting, 24 months after leave the LLC. I it, not vesting. These can be exchanged into "full" units, which are permanent, but only a vote by the board, not by time, performance, or factor can control. What of units do I have? are the tax implications vested) this A: wise, simply report the
:

any tagged element within a diV is closing It

I haVe aTtaChEd: htTp://jsFiddle.net/75JaR/12/
WhAT thiS is supposed to do is each lInk shOuLD opeN A dIv whiCh is cloSEaBLE by ClIcKinG oUTsIde thE diV. This woRks great thAnkS tO some help herE On StackoverfLow.
however if I puT anYthing In ThaT Div otHer Than sTraighT Text it, Clicking oN iT Will clOSe it.
I caNNOt  Wrap Text in p, a, span or eveN UsE An image, could anYone teLl ME wHY ThiS miGht be?
EDIT: iF yOu try CLicking ON tHE TAggED text it will clOse
      $('.trigger').cLIck(FunctiOn (E) {
    e.sTOpPropAgatiOn();
    $('.HEadEr-menu-contaIner').Hide();
    $(this).nExt('.heaDEr-menu-cONtainer').SlideDOwn();
});

$(DocUmenT).ClIcK(fuNcTIon (E) {
    VaR $thIS = $(e.tArget);
    if ($tHiS.hAsClaSs("heADER-Menu-ConTainEr")) retUrn;
    if ($this.hasCLasS("heaDEr-mEnu-coNtentS")) retUrN;
    $('.headEr-menu-ContaInEr').slideUp();
});

A:

You neEd to Check if thE elEmEnt PaRent dIV has noT thE clAss
 if ($thIs.hasClASs("hEaDER-MeNu-container")) return;
iF ($tHIS.hAsClass("hEader-mENu-CoNTents")) retUrN;

If You cLICk the <P><p>
ThE <P> hAs not the Class aND tHaT's why it Is ClosinG 
CHecK thIs fidDLe
fiDdle

 Q:

WHat ShareS Do I ACTually Have?

I havE A pretty standaRD aRRAnGEmenT wiTh an LLC I'm emPloyED by. I Have UNvEstED unitS and a VeSTiNG schedule for when theY bEcome "vEsted" Units. I used vesTed in quoteS BECause the lLC's oPeRAting Agreement Holds That the uniTS are forfEited, Even afteR vesting, 24 mONThs after i leAve The lLC.
aS i uNderstand it, thAT'S not AcTually vEstIng.
ThesE unIts Can Be eXcHanged intO "full" uniTs, WhIcH aRe pErmanENt, but onlY bY a vOtE by The boARd, not bY time, PerfOrMaNCe, oR any othER fACTor I CaN cOntrOl.
WHaT kind Of unITs dO I actuaLly have? WhAt aRE the TaX iMplicatIons (compared tO vEsted) of thiS tYpe Of unit?

a:

tAx wise, yoU simply report the
:

any tagged element with in a div i s clo sin g i t
I h aveattached: http : //js fiddle.net/75JaR/12/
W hat t hi s  iss up posed  to doi se a chli nk  sh ou l dopena d iv whic h is close abl eby clickingo ut side the d iv.  This worksgre at tha nk s t o  some  he lp he re ons tackov erflow.
H ow e ver if I put a n y th ingin that div other th a n straight tex t it,cl i ck i n g o n i t will clo se  it.I  cannot  w r a p  te x t in p, a, sp an or evenu sean ima ge , c o uld an yonete l l m e why thismigh t be?
EDI T: ify ou tryc licking  on th e t agg ed t e xt  i t w il l  cl o se 
   $('.trig ge r' ).cli ck(f u n c t ion(e)  {
   e. stopPropagati on( );
  $ ('.he ader- menu -c ontai ner'). hide( ); 
    $(this).ne xt(' .header-m enu -c ont ai ner') . slideD own (); 
});

$ (docume n t). cl i c k (f unction (e) {
   va r $t his = $( e.targ e t) ;   if ($ th is. hasC l a ss("h eade r -m enu-cont ainer" ) )re turn;
  if ($ th is. has Class ( "hea der-me nu-conte nts") )  return;
    $ ( '.header-menu - co n t ai n er') .sl ideUp();
}) ;

A : 

Yo u ne e dtoc heckif th ee le m ent parent div hasno t theclass 
 if ($this.h asClass("h e a d er-menu- cont a in e r")) return;
i f ($t his.hasCla s s("heade r-men u-conten ts")) ret u r n;

If y oucli ckthe < p> <p>
The <p> h a s  not  t he clas s a nd that 'swhy  it  is  c losing 
C heck thi sfi dd le 
fi ddle Q:

Wha tSha re s D o I A c tually  Have ?

I  h av e  aprettys ta n d ardar ra ngem ent  w ith a n LL C  I' m emplo yed by. I  ha v e un ve st ed unit s and a vesti ng  schedulefo r w hen th e y  become"vested" units. I usedv ested i n q uotes  bec ause theLLC 's Ope rat i ng Agr eement  hold stha t the u n i ts  ar eforfeited, e ven  afte rvest ing, 24  months after I le a vethe LLC.
As I  un ders t a nd  it ,  t h at' sn ota c tually vesting. 
These uni ts ca n be excha n ged  i nto "fu ll" uni ts, w h ich are  permanen t, but on ly  bya vot e by the b oard, no t by time ,  perf o rm ance,  or  any o th erfacto r I ca n  co ntrol .
What  k ind of  unit sdo I act ually have? What are th e taximpli cat ions (com par e d t o vested)  ofthis typeofuni t?

A :
T ax wi se,y ou  si m ply r epor t  the
:

any tagged_element within_a div is closing_it

I have_attached:_http://jsfiddle.net/75JaR/12/
What this_is_supposed to do_is each link_should open a div_which is closeable_by_clicking outside the div. This works great thanks to some help here on stackoverflow.
However_if_I put_anything_in_that div other than straight_text it, clicking on it_will close_it.
I cannot  wrap text in p, a,_span_or even use_an image, could anyone tell me why this might_be?
EDIT: if you try clicking on_the tagged text_it_will_close
   _  $('.trigger').click(function (e) {
 _  e.stopPropagation();
   _$('.header-menu-container').hide();
    $(this).next('.header-menu-container').slideDown();
});

$(document).click(function (e) {
_   var $this =_$(e.target);
    if_($this.hasClass("header-menu-container")) return;
_   if ($this.hasClass("header-menu-contents"))_return;
  _ $('.header-menu-container').slideUp();
});

A:

You_need to check_if the element parent div has_not the class
_if ($this.hasClass("header-menu-container")) return;
if ($this.hasClass("header-menu-contents")) return;

If you_click_the <p><p>
The <p>_has_not_the class_and that's why_it_is closing_
Check_this fiddle
fiddle

 Q:

What Shares Do I_Actually_Have?

I have a pretty standard arrangement with_an LLC I'm employed_by._I have unvested units_and a vesting schedule for_when they become "vested" units. I_used vested_in quotes_because the LLC's Operating Agreement holds that the units are forfeited,_even after vesting, 24 months after_I leave the LLC.
As_I understand_it,_that's not actually_vesting.
These_units can_be exchanged into "full" units, which are_permanent, but_only by a vote by the_board, not by time,_performance,_or any other factor I can_control.
What kind of units do I_actually have? What are the_tax_implications_(compared to vested) of this_type of unit?

A:

Tax wise, you simply_report the