Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($(selector).is(':checkbox')){
- //do something
- }else{
- if (selector.indexOf("radio") >= 0){
- //do something
- }else{
- if ($(selector).is('input') || $(selector).is('select')) {
- //do something
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement