Bug Tracker

Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#9877 closed feature (wontfix)

documentation FAQ has some old examples.

Reported by: anonymous Owned by: addyosmani
Priority: low Milestone: None
Component: web Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

Description

where: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_disable.2Fenable_a_form_element.3F

for the question "How do I disable/enable a form element?", examples use ".attr" method instead of ".prop" method as preferred in the new jquery 1.6.1 ( http://blog.jquery.com/2011/05/12/jquery-1-6-1-released/)

IE:

Disable #x

$('#x').attr('disabled', true); should use prop Enable #x $('#x').attr('disabled', false); should use prop

and there are probably more like this in this page!

Change History (4)

comment:1 Changed 8 years ago by addyosmani

Component: unfiledweb
Keywords: needsdocs added
Owner: set to addyosmani
Priority: undecidedlow
Status: newassigned

Thanks for alerting us about this. We've discussed how we might approach updating the FAQ as there's a need for us to maintain jQuery 1.4 on that particular subdomain, however we feel that perhaps sticking the examples up on jsFiddle would allow us to provide examples across multiple/different versions. I'll take a look into updating this page soon.

comment:2 Changed 6 years ago by dmethvin

Type: enhancementfeature

Bulk change from enhancement to feature.

comment:3 Changed 6 years ago by mikesherov

Resolution: wontfix
Status: assignedclosed

Thanks for contributing! The entire old docs site is going away shortly, and with it, this bug!

comment:4 Changed 6 years ago by mikesherov

Keywords: needsdocs removed
Note: See TracTickets for help on using tickets.