Bug Tracker

Opened 15 years ago

Closed 13 years ago

Last modified 11 years ago

#2497 closed enhancement (worksforme)


Reported by: frohoff Owned by:
Priority: minor Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:


It would be nice to have a :readonly form filter (readonly="true"), similar to :disabled, for complex forms that need immutable inputs that still get submitted with the form action

Change History (2)

comment:1 Changed 15 years ago by ygirouard

You mean a way to filter in or out readonly inputs in a form inside a selector?

If so, you can do this like this already:


// To select all readonly inputs in form with id "form_id"
$("#form_id input[readonly='readonly']").serialize();

// To select all inputs BUT readonly ones
$("#form_id input[readonly!='readonly']").serialize();

Look at the attributes section of this page for more details: http://docs.jquery.com/Selectors

comment:2 Changed 13 years ago by dmethvin

Resolution: worksforme
Status: newclosed

See above for the solution. Adding new pseudos isn't a good idea because they throw console warnings in Firefox / Safari / Chrome due to the use of querySelectorAll.

Note: See TracTickets for help on using tickets.