Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1266 closed bug (fixed)

$(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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 13 years ago by brandon

Resolution: fixed
Status: newclosed

This is fixed in 1.1.3a (latest SVN)

Note: See TracTickets for help on using tickets.