English 中文(简体)
Jqueryeffect ondownmenu, the effect is not the same on all elements.
原标题:Jqueryeffect on dropdownmenu, the effect is not the same on all elements.

我正在面临一个 j滴虫问题。 我对它进行了“幻灯塔”和“拖延”的影响,但是,如果你把离开的权利联系起来,这只会是适当的。 当你以其他方式控制时,拖延的影响首先要放在滑坡之前。 我很抱歉,所以我很难理解这一点。 这是否与html要素指令有任何关系?

我已尝试将“z-index”添入“z-index”的jquery中积极的链接部分,我还试图“hide”所有不活跃的、但没有任何工作过的不足。

第二,我对法典最后一部分持怀疑态度,我试图把案文隐藏在我接触过的文稿和文字中。 我使用了从,除最后一行外,在你点点对案文的点点点点点点点点点点点外,一切都做了更正。

The jquery Code is show underneath, and to view thedownmenu, visit this website:

$(document).ready(function(){



 $("ul li").mouseenter(function(){

    $("ul",this).stop(true,true).slideDown("slow");


         }).bind("mouseleave",function(){
    $("ul",this).delay(500).slideUp("slow");
 });        



 $( form input[type="text"], textarea ).each(function(){
    var theLabel = $(this).prev( label );


    $(this).css("color", "grey").attr( value ,theLabel.html());


    theLabel.hide();
    }); 

});

如果有人想看一下,我会非常伟大!

最佳做法

Vegar

最佳回答

尝试这项法典。 增加z-index

$(document).ready(function(){
  $("ul li").mouseenter(function(){
    $("ul",this).stop(true,true).css("z-index", 10).slideDown("slow");
  }).bind("mouseleave",function(){
    $("ul",this).css("z-index",2).delay(500).slideUp("slow");
});     

EDIT:

$( form input[type="text"], textarea ).on("focus", function() {
  $this = $(this); 
  if ( $this.val() === $this.attr("data-text") ) $this.val("");
});  

添加对您的投入和文字内容的特性,即“文本OFLabel”,删除标签。

例:

<input type="text" value="textOFLabel" data-text="textOFLabel">
问题回答

暂无回答




相关问题
PHP Combo Box AJAX Refresh

I have a PHP page that currently has 4 years of team positions in columns on the page. The client wants to select the players in positions and have first, second and thrid choices. Currently the page ...

jquery + ajax + json + fill dropdown list not working

I m pretty sure i am almost there....but i cannot figure out how to iterate through json objects and fill a dropdown list. Here is the js code: My JSON data returned:{"name":"County1","name":"County1"...

Gridviews and DropdownLists

Is it possible to change the data source of a dropdown list in a gridview from another dropdown list selected index changed method in the same gridview? for example I have a dropdown that needs to ...

Adding a new value to the drop down list box

I have a drop down list box which has one of the values to be others. I want to move these value to the last. Please help me with this. The code i am using is as follows ddlAssetsCountryOthersone....

Show hide div using codebehind

I have a DropDownList for which I am trying to show a div OnSelectedIndexChanged but it says OBJECT REQUIRED. I am binding the DataList in that div: aspx: <asp:DropDownList runat="server" ID="...

Why might dropdownlist.SelectedIndex = value fail?

I have a dropdown list that I am binding to a datatable. Here is the code I am using to do it: ddlBuildAddr.DataSource = buildings ddlBuildAddr.DataTextField = "buildingName" ddlBuildAddr....

热门标签