English 中文(简体)
单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单单在火法上不做。
原标题:simple jquery on asp.net does not work on firefox

我一直在为这项工作而奋斗。 有些人希望帮助我!

基本上,Porlin忽视了纽芬兰的点击功能,而是在子功能上,而是在子宫上张贴,而不是管理 j。

该公司在IE和Khat,但不是在Nord。

感谢你事先提供帮助。

这里是产出法:

<script type="text/javascript" language="javascript">
    $(document).ready(function() {

        $(".CatList li").click(function() {
            if ($(this).is(".selected")) {
                $(this).attr("class", "");
                $( #ctl00_ContentPlaceHolderRight_CatChanged ).val(1);
                return false;
            }
            else {
                $(this).attr("class", "selected");
                $( #ctl00_ContentPlaceHolderRight_CatChanged ).val(1);
                return false;
            }

        });


        $("#ctl00_ContentPlaceHolderRight_btnSave").click(function() {
            var elements = $("li.selected");
            if (elements.val() == null) {
                alert("You must select at least one category");
                return false;
            }
            else {
                elements.each(function() {
                    $( #ctl00_ContentPlaceHolderRight_CatChecked ).val($( #ctl00_ContentPlaceHolderRight_CatChecked ).val() + "," + $(this).attr("id"));
                    return true;
                });
            }
        });
    });
</script>

问题回答

你们是否知道火焰扩散? 这对德布尔·贾瓦特而言非常有用。

消防队还包括一个可以测试你职能的瓦 Java字典。

Don teck against null -tries toding with the un Defin that jQuery ensures. 查询<代码>elements.val() Return tostart (just alert)。

另外,在<条码>中,您没有t <代码>preventDefault(或return false。 条款可作为提交该网页的理由。

谢谢你,用警示挽救了我的日子。 我也感到困惑。 我将《刑法》修改如下,一切都非常完美:

            var elements = $("li.selected");
            elements.each(function() {
                $( #<%=CatChecked.ClientID%> ).val($( #<%=CatChecked.ClientID%> ).val() + "," + $(this).attr("id"));
            });
            if ($( #<%=CatChecked.ClientID%> ).val() == "") {
                alert("You must select at least one category");
                return false;
            }
            else {
                //alert($( #<%=CatChecked.ClientID%> ).val());
                return true;
            }




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签