Don't try to mix jquery in like this. Learn how to use directives.
On Thursday, May 29, 2014 3:23:06 AM UTC-6, Daniel Lopez wrote:
>
> Hi,
>
> I'm trying to to use some jquery inside a partial. what I want to do is a
> .slideToggle() of a div, inside a partial.
>
> this is my script
>
> $(".glyphicon-minus").click(function (event) { //ocultar grafico (panel
> body)
> var status = $(event.target).attr('id').split("_");
> $("#accordion_" + status[1] + "_" + status[2]).slideToggle("slow");
> });
>
> and this is my html
>
> <div class="col-sm-6" id="chart_0_1">
> <div class="panel panel-success">
> <div class="panel-heading">
> <div class="btn-group" style="float:right;">
> <i class="glyphicon glyphicon-minus" id="minimize_0_1"></i>
> </div>
> <h3 class="panel-title">Volume de Negócios</h3>
> </div>
> <div id="accordion_0_1" class="panel-body">
> <nvd3-multi-bar-chart data="graficos[0]" id="dataChart_0_1"
> height="400" showXAxis="true" reduceXTicks="true" showYAxis="true"
> showLegend="true" showControls="true" tooltips="true">
> <svg></svg>
> </nvd3-multi-bar-chart>
> </div>
> </div>
> </div>
>
> I've been reading but i can´t figure it out. Can someone help me?
>
> Thanks
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.