I am absolutely new in JavaScript and jQuery and I have the following problem.
I have to modify a jQuery script so that it has a different behaviour when the browser is Chrome.
This is my script:
$(document).ready(function () {
  $("thead.opening").click(function () {
    alert("INTO second function");
    $(this).next().css('width', '10000000 em');
    alert(modified);
    $(this).next().css('width', '10000000 em');
    $(this).next().css('display', 'table-row-group');
    alert($(this).next().css('display'));
  });
});
As you can see this script perform this statement that sets the display: table-row-group CSS settings:
I want that if the browser is Chrome the script set:
$(this).next().css('display', 'block');
Can I do it in some way?
 
     
     
    