This is my jQuery code
<script type="text/javascript">
jQuery(document).ready(function($){
$("#'.$tag.'").dcFlickr({
limit: '.$nFlickr.',
style: "thumb",
q: {id: "'.$id.'",
lang: "en-us",
format: "json",
jsoncallback: "?"}
});
});
</script>
It shows me this error Cannot set property ‘dcSlickTabs’ of undefined
I tried this
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function() {
$j("#'.$tag.'").dcFlickr({
limit: '.$nFlickr.',
style: "thumb",
q: {id: "'.$id.'",
lang: "en-us",
format: "json",
jsoncallback: "?"}
});
});
</script>
But still its not working ….
It looks as though you are trying to write some sort of combination of PHP and js. String concatenation in js is done with + and . in PHP.
Example: