Change type of jQuery Jeditable after initialization

I have a Jeditable element, which starts out as a text-editable element. However, based on user choice, I would like to change this to a select type. Is this possible?

If the editable element is a table cell (td), and the answer is to replace that cell with a new element and new Jeditable, how does one do that in jQuery? The replaceWith function gives the error Cannot read property 'parentNode' of null when I try to replace the cell with a new cell.

-------------Problems Reply------------

how about making the two types, then just show/hide for which is needed.

for example, make the text-editable and select type but select type is hidden. when user choose select type, you hide text-editable and show select type.

Category:javascript Views:0 Time:2011-02-15

Related post

  • jquery- jeditable not working 2009-07-09

    basically what I want is simple, when people onclick, the field become editable. After they change the value, press Esc at keyboard/ or click outside , to save the record. I'm not sure why it's not working. Documentation seems not complete... Anyone

  • JQuery JEditable - How to Add A Visible Edit Me Button? 2010-01-05

    i love this plugin but the reality is that most people won't realize at first that they can click on the text to edit. Ideally, it would be nice to add a Button next to the text or a simple [Edit] link that the user clearly sees but never gets submit

  • do jquery.jeditable plugin works on mouse click? 2010-12-01

    I am working in MVC & using jquery.jeditable plugin for inplace editing in grid.It is working fine when i make the changes & click on enter button. But can you please let me know how can i do same editing when i click mouse outside the grid s

  • jquery. jeditable.Cancel the previous time picker when a new time picker is opened 2011-07-12

    Using jeditable jQuery plugin along with the timepicker plugin. (custom inputs "Time Picker 2" from this page: The time picker plugin seams to override the 'onblur cancel' functionality and cl

  • JQuery.jeditable.js Edit-in-place bug (Windows7, Chrome 16) 2011-12-19

    I'm using this edit-in-place widget jquery.jeditable.js . On Windows 7, in Chrome (latest version - 16), when I type text into the input field, there is an odd bug where the text goes lower within its own field. This makes it unreadable (see attachme

  • Select inputs with number type through jQuery 2011-02-03

    How can I select all inputs with number type in jQuery? The following code doesn't work: $(':input[type="number"]').click(function () { alert('hello'); }); Thanks. --------------Solutions------------- Your selector is correct. Using the attribute-equ

  • Can jquery(.jeditable) be used to automatically drop down a select list? 2011-03-08

    I have a JSP page that builds a screen based on table data from my servlet. I'm using display tag to format the table data, and jquery.jeditable to make certain cells editable to the user. One of those cells is a select (drop-down) list of options. R

  • Is there any way to set the content type of JQuery's $.POST ajax shorthand call? 2011-04-26

    A page I built is currently undergoing jmeter testing, and the content type that JQuery's $.POST function uses by default (application/x-www-form-urlencoded) is causing problems. I'd like to be able to set that content-type to text/plain. I realize t

  • Get element type with jQuery 2011-12-05

    Is it possible, using jQuery, to find out the type of an element with jQuery? For example, is the element a div, span, select, or input? For example, if I am trying to load values into a drop-down list with jQuery, but the same script can generate co

  • I receive following warning message:Flex type 2K warning:"can't initialize try icon"__ 2013-03-16

    Hi, I have a little problem occurs at last when i start my PC.Almost every time I run the PC I receive following warning message:Flex type 2K warning:"can't initialize try icon" usually then my notification area of the task bar can not show me some o

  • how to get out of jquery (jeditable) mess 2009-06-08

    I am not very good at jQuery but decided to use jEditable plugin for my site because I thought it looked good and solved the purpose. However, I am in a bit of a tangle now. I used this plugin to edit data and the edited data is sent to the DB and so

  • Is there a jQuery jEditable Multi-select plugin? 2009-10-20

    I'm using the excellent jEditable plugin for some in-place editing on my page. There is one spot I need a multiple select element. Is there a jEditable plugin that allows me to do this? I've been trying to use the jEditable author's plugin API to cre

  • jQuery + Jeditable - detect when select is changed 2010-03-29

    I'm using Jeditable for in-place editing. One the controls I am working with has the select type. When a user clicks on the field, the following select control is generated: <div id="status" class="editable_select"> <form> <select name

  • Using jQuery live() to initialize plugins? 2010-04-13

    Using jQuery, what's the best way to automatically initialize a plugin on all current and future elements of a specific class? For example, say I want all <input type="text" class="datepicker" /> elements to have the jQuery UI Datepicker plugin

  • Is there a way to define variables of two different types in a for loop initializer? 2009-05-14

    You can define 2 variables of the same type in a for loop: int main() { for (int i = 0, j = 0; i < 10; i += 1, j = 2*i) { cout << j << endl; } } But it is illegal to define variables of different types: int main() { for (int i = 0, flo

  • Posting complex types using Jquery to Asp.Net MVC 2009-07-14

    I am trying to make a rest service that receives complex types from a Jquery $.ajax post but I cannot seem to convince mvc to hydrate my complex objects in the controller. The following is some of my code: Controller: [AcceptVerbs(HttpVerbs.Post)] pu

  • Different action depending on returned content type in jquery ajax 2009-08-04

    Is there any way I can evaluate the returned content type of a jquery ajax request and do different things depending on the content type? For example if the conten type is html I'd like to append this to a certain div on my page. If the content type

  • JQuery JEditable Plugin On Focus Notify Callback Function 2009-08-26

    I want to attach and event to the Jeditable Input box as soon as it gets created. There is an "onblur" but no onfocus as far as I can tell. Does anyone know a fast approach to do this? --------------Solutions------------- There's more than one way to

  • what type of jQuery effect do I need to accomplish the same thing 2009-09-30

    I would like to know how this type of slider, where the arrow next to the picture is sliding, could be accomplished with jQuery. I can see in Firebug that it is made with Flash. It does not seem to be overly complicated to accomplish it with jQuery,

Copyright (C), All Rights Reserved.

processed in 0.183 (s). 11 q(s)