简体   繁体   中英

I am creating a tool tip in jquery

<div id="divid"><a style="text-align: left" href="#" onclick="$('#divid').validationEngine('showPrompt', 'Please enter your EIN / Employee Code with which you log into your PC', 'load')">Help Prompt</a></div></td> 

This is my help prompt syntax. i have also inculded jquery.validationEngine-en.js

<script>
            jQuery(document).ready(function(){
                // binds form submission and fields to the validation engine
                jQuery("#FNAME").validationEngine();
            });

        </script>

FNAME is id of my form.

I am getting Object expected error.Please provide me a solution

Try putting the link outside the div:

<div id="divid">EIN</div>
<a style="text-align: left" href="#" 
 onclick="$('#divid').validationEngine('showPrompt', 'Please enter your EIN / Employee Code with which you log into your PC', 'load')">
   Help Prompt
</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM