Q:

PHP echo with Javascript error

'.(($disablez > 0)?'<script type="text/javascript">   $(".lcs_check"").lcs_on(); </script>':"").'

Hello, I am using this code inside an echo. but the problem is it doesnt work!. the main point is its a switch that turns ON/OFF and I use PHP codes to get the value but now I want it to be on if it found the disablez more than 0,
I tried putting $(".lcs_check"").lcs_on(); in a <style> outside the echo and it works fine.
Full Echo 
echo' <form action="" method="post">
<div class="control-group">
<label for="title" class="pull-left label label-info span2">News Name</label>
                <div class="control">
                    <input type="text" id="title" name="title" value="'.$row["title"].'"" />
                </div>
            </div> <br /><br /><br />
<div>
<label for="content" style="padding-top: 7px;"class="pull-left label label-info span2">Description</label><br /><br />
                <div class="control">
                    <textarea class="ckeditor" name="content" id="content" cols="30" rows="10"> '.$row["content"].' </textarea>
                    </div>
                </div> <br />
<div class="control-group">
        <p><input type="checkbox" name="check-1" id="check-1"value="1" class="lcs_check" autocomplete="off" /></p>
        '.(($disablez > 0)?'<script type="text/javascript">   $(".lcs_check"").lcs_on(); </script>':"").'
                </div>
<div class="control-group">
                <div class="control">
                <input id="addProjectAdd" type="submit" class="btn btn-sharp btn-success" value="Update News" />
                </div>
            </div>
            </form>';
        }

A:

echo '...</p> ' . ($disablez > 0) ? '<script> $(".lcs_check").lcs_on(); </script>':'' . ' </div> ...';

If your code is correct, this should do the trick
Update.. Full Code..
echo' <form action="" method="post">
<div class="control-group">
<label for="title" class="pull-left label label-info span2">News Name</label>
                <div class="control">
                    <input type="text" id="title" name="title" value="'.$row["title"].'" />
                </div>
            </div> <br /><br /><br />
<div>
<label for="content" style="padding-top: 7px;"class="pull-left label label-info span2">Description</label><br /><br />
                <div class="control">
                    <textarea class="ckeditor" name="content" id="content" cols="30" rows="10"> '.$row["content"].' </textarea>
                    </div>
                </div> <br />
<div class="control-group">
        <p><input type="checkbox" name="check-1" id="check-1"value="1" class="lcs_check" autocomplete="off" /></p>
        ' . ($disablez > 0) ? '<script> $(".lcs_check").lcs_on(); </script>':'' . '
                </div>
<div class="control-group">
                <div class="control">
                <input id="addProjectAdd" type="submit" class="btn btn-sharp btn-success" value="Update News" />
                </div>
            </div>
            </form>';

