• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Electric Toolbox Blog

The Electric Toolbox Blog

Linux, Apache, Nginx, MySQL, Javascript and PHP articles

  • Applications
  • FCKEditor
  • Apache
  • Windows
  • Contact Us
Home / Javascript / @ selector is deprected in jQuery, removed in jQuery 1.3

@ selector is deprected in jQuery, removed in jQuery 1.3

In my how to check and uncheck a checkbox with jQuery and how to get and set form element values with jQuery posts I used @name= selectors for some of the form elements but have since discovered the use of the @ was already deprecated and has been removed in jQuery 1.3.

One of my previous examples looked like this, to work out if a checkbox was checked:

$('input[@name=foo]').is(':checked')
$('input[@name=foo]').attr('checked')

To make the code valid for jQuery 1.3 you need to remove the @ symbols and do this instead:

$('input[name=foo]').is(':checked')
$('input[name=foo]').attr('checked')

The use of these selectors without the @ also works in the jQuery 1.2 branch. I am not sure if it works in older versions.

Check Out These Related posts:

  1. How to check and uncheck a checkbox with jQuery
  2. Clear a form with jQuery
  3. Using the
  4. Clear a form with Javascript

Filed Under: Javascript

Primary Sidebar

Categories

  • Apache
  • Applications
  • Article
  • Case Studies
  • Email Servers
  • FCKEditor
  • HTML And CSS
  • Javascript
  • Linux/Unix/BSD
  • Microsoft SQL Server
  • Miscellaneous Postings
  • MySql
  • Networking
  • Nginx Web Server
  • Offsite Articles
  • OSX
  • PHP
  • Quick Tips
  • RFC – Request for Comments
  • SilverStripe
  • VMWare
  • VPN
  • Windows
  • WordPress

Recent Posts

  • Vim Show Line Numbers
  • Add User To Group Linux
  • Chmod 777 Tutorial
  • How to Copy Directory Linux
  • Linux create user

Copyright © 2021. ElectricToolBox. All Rights Reserved.

  • Contact Us
  • Copyright Info
  • Privacy Policy
  • Sitemap