我想在 jquery 中选择一个 down
list 中选中的项目的代号
networkId = $("#availableFbProfiles").selectedIndex.id;
但控制台上的错误是
Cannot read property id of undefined
我想在 jquery 中选择一个 down
list 中选中的项目的代号
networkId = $("#availableFbProfiles").selectedIndex.id;
但控制台上的错误是
Cannot read property id of undefined
尝试此 :
networkId = $("#availableFbProfiles option:selected").prop("id");
如果您重新使用旧版本的 jQuery ( & lt; 1. 7), 使用 < code> attr () 而不是 prop ()
。
尝试
$("#availableFbProfiles option:selected").get(0).id
networkId = $("#availableFbProfiles option:selected").prop("");
I have a query that gets run often. its a dynmaic sql query because the sort by changes. SELECT userID, ROW_NUMBER(OVER created) as rownumber from users where divisionID = @divisionID and ...
I m working on a small project in QT (well, pyQT4 actually, but it shouldn t matter too much) and I ve run into the following problem. I have a QTableView with several rows and columns. I have set the ...
Edit: This may be a 5.0-specific bug. (I m on 5.0.83). Removing the innodb_log_file_size setting gets rid of the problem. Which makes complete sense. Not. Googling about finds a handful of ...
The method or operation is not permitted. I assume this is a permission s issue, but I can t figure out where I would change it. It is strange because I can rename an index with no issue. EDIT: ...
I have discovered a huge performance problem in Linq to SQL. When selecting from a table using strings, the parameters passed to sql server are always nvarchar, even when the sql table is a varchar. ...
Can someone help me create an index/count button for a UITableView, like this one? iTunes http://img.skitch.com/20091107-nwyci84114dxg76wshqwgtauwn.preview.jpg Is there an Apple example, or other ...
I want to determine when the index (transparent alphabet) along the side of a UITableView is tapped. To be more specific, I have a sectioned UITableView that has an index, and said index does the ...
Is there a way to move an entity to another kind in appengine. Say you have a kind defines, and you want to keep a record of deleted entities of that kind. But you want to separate the storage of ...