顯示具有 jQuery 標籤的文章。 顯示所有文章
顯示具有 jQuery 標籤的文章。 顯示所有文章

2015年6月10日 星期三

(溫故知新) Hibernate 簡易練習(查找資料)

(溫故知新) Hibernate 簡易練習(查找資料)

原始碼下載: https://goo.gl/xu4KXV https://goo.gl/1S0qJt

【開發環境】

Tomcat 7

MySQL

【開發工具】

Intellij IDEA 14

【使用FrameWork】

SpringMVC

jQuery

【主要畫面】

image

2015年5月8日 星期五

(溫故知新) SpringMVC 簡易練習(查找資料) easy 1

(溫故知新) SpringMVC 簡易練習(查找資料) easy 1

原始碼下載:https://goo.gl/7fEXBV

【開發環境】

Tomcat 7

MySQL

【開發工具】

Intellij IDEA 14

2014年5月5日 星期一

運用jQuery搜尋Table中特定條件select option 的資料

直接看程式碼

function test2(){
$("tr").each(function(i){
//取得符合條件checkbox的value
//var checkboxValue = $(this).find("input[type='checkbox']").attr('checked');
var checkboxValue = $(this).find("td input[type='checkbox']").attr('checked');

if(checkboxValue==true)
//取得在該tr中符合條件的value
var tmp = $(this).find("select option:selected").attr('value');
//console.log(checkboxValue);
if(tmp!=null){
console.log(tmp);
}
});
}

大意是找出整份文件中 tr 中符合 ("input[type='checkbox']").attr('checked')
條件的 row,找到該row 後,再依照 ("select option:selected"),取得想要的值
Related Posts Plugin for WordPress, Blogger...