AnsweredAssumed Answered

How to input jquery into PHP file in Sugarcrm

Question asked by Cherry Cherry on Dec 18, 2014
Latest reply on Dec 18, 2014 by Lpu8er Lpu8er
Hi, How do I put the jquery code into php file (my_crm/custom/modules/cases/editviewdefs) using: 


<!DOCTYPE html><html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>;
<script>
$(document).ready(function(){
  $("#hide").click(function(){
    $("p").hide();
  });
  $("#show").click(function(){
    $("p").show();
  });
});
</script>
</head>
<body>

<p>If you click on the "Hide" button, I will disappear.</p>
<button id="hide">Feedbacks</button>
<button id="show">Complaints</button>

</body>
</html>

Can this code be added into the editviewdefs.php file? When I added in, errors appear and the webpage shown a blank space.
Thanks!

Outcomes