Tuesday, April 23, 2013

Re: Calling Jquery or javascript function based on an if condition

{% if condition %}

<script type="text/javascript">

some_function(params);

</script>

{% endif %}

Sarfraz ahmad wrote at 23 апреля 2013 13:30:38:

Guys, is it possible to call a javascript function in django templates based on an if condition.......?????????? What i want to do is that in django templates if a given if condition is true i want to call a javascript function automatically............

tell me guys if it is possible or not????



No comments:

Post a Comment