Bug Tracker

Modify

Ticket #1266 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

$(object).show turns a line level element into a block level element :(

Reported by: vishaldpatel Owned by:
Priority: major Milestone: 1.1.3
Component: ajax Version: 1.1.2
Keywords: Cc:
Blocking: Blocked by:

Description

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>UTF-8 Test</title>

<script type="text/javascript" src="jquery-latest.js"></script> <script type="text/javascript">

$(document).ready(

function(){

thanks("this is a car", true);

On click functions for links. $("a").click(function(){

var expected = thanks("we will disappear now...", true); $(this).addClass("highlight"); $(this).hide('slow'); return false;

}

);

$("p").click(function(){

thanks("you clicked a p link", true); $("a").show("slow"); return true;

}

);

}

);

function thanks(message, return_message) {

alert("alert: " + message); return return_message;

}

</script>

<style type='text/css'>

.highlight {

background-color: yellow;

}

</style>

</head>

<body>

<a href=" http://jquery.com" style="display: inline">JQuery</a> <a>This is a local anchor</a>

<p>Lorem ipsum delorem something something</p>

</body>

</html>

Change History

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

This is fixed in 1.1.3a (latest SVN)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.