开发者

use class on textbox to use plugin

is it possible i use jquery plugin on class which is assigned to a textbox i mean this

<input type='text' size='3' class='abc'>
<script type="text/javascript">
    $(document).ready(function() {
        $('.myCl开发者_如何学编程ass').datepicker();
    });
</script>


Sure ..

$(".myClass").Something ..

http://api.jquery.com/class-selector/


yes you can do it , you can apply the pugin.

here is the example : example : http://pranayamr.blogspot.com/2010/11/jquery-plugin-how-and-when-to-use-it.html


Yes it ought to be.

The $() will return a collection of jQuery objects. It doesn't matter if the selector iside is an #id, element, .class or :pseudoclass selector.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜