jquery无法访问标记

时间:2012-10-09 16:41:06

标签: jquery

考虑到我的aspx代码的以下html输出,我似乎无法捕获标记点击。

我尝试了所有可能的变化。最新的如下所示,有什么建议吗?

<fieldset class="injectsysdisplay">
    <legend>Chemical Injection Systems Information</legend>
        <div class="literaltext">
            <p> We utilize two types of systems for mixing EnerBurn&reg; with your fuel supply to deliver it to your diesel engine,<br /> On-Board systems and Bulk Fueling systems. Click on an item below for more information.</p>
            <ul class="ulGreen">
                <li><b>On-Board systems</b><span style="color:black;"> (See an installation picture<a href="#" data-rel="onBoardVehiclepicdisplay">here</a>)</span> </li>
                <li><b>Bulk Fueling systems</b><span style="color:black;"> (See an installation picture<a href="#" data-rel="onBoardVesselpicdisplay">here</a>)</span> </li>
                <li><b>Terminal Fueling systems</b><span style="color:black;"> (See an installation picture<a href="#" data-rel="onBoardFuelBargepicdisplay">here</a>)</span> </li>
            </ul>
        </div>
    </fieldset>

Jquery的:

 $(document).ready(function() {
        //$('.ulGreen').delegate('li span a', 'click', function(e){
        $('.literaltext ul li span a').click(function (){
            alert("Show me you work!");

        });​
    });​

0 个答案:

没有答案