Jquery查找方法格式 [英] Jquery Find method format
问题描述
if (this_call!= null&& has_value(this_call.data(。。process_step))
$ container.find(' 。col1:[key =' + this_call.data()。process_step + ' ]')。click();
else {
$ container.find(' 。col1:[key]:first').click(); // 错误
}
i得到错误语法错误,无法识别的表达式在下面的链接上
$ container.find('。col1: [key]:first')。点击();
每当按钮点击当时按钮编号(0,1,2,3) )由下线给出。
this_call.data()。process_step
.col1:在CSS中定义
。col1 {
box-sizing:content-box;
颜色:白色;
宽度:75px;
身高:75px;
line-height:75px;
text-align:center;
-webkit-border-radius:10px;
background-image:-webkit-radial-gradient(20px 20px,circle cover,rgb( 201 , 201 , 201 ),rgb( 165 , 165 , 165 ));
-webkit-box-shadow:4px 4px 20px 4px rgb( 196 , 196 ,< span class =code-digit> 196 );
border-bottom:5px solid rgb( 172 , 172 , 172 跨度>);
字体大小:16px;
font-weight:bold;
text-shadow:rgba( 0 , 0 , 0 , 0 。 4 )0px -1px 0 跨度>;
}
.col1.selected
{
background-image:-webkit-radial-gradient(20px 20px,circle cover,rgb( 34 , 214 , 0 ),rgb( 19 , 156 , 0 ));
-webkit-box-shadow:4px 4px 20px 4px rgb( 185 , 185 ,< span class =code-digit> 185 );
border-bottom:5px solid rgb( 25 , 172 , 84 跨度>);
}
.col2 {
box-sizing:content-box;
-webkit-box-flex: 1 ;
padding-left:20px;
}
可以告诉我如何在 find中定义动态值 jquery方法
container.find(' .col1:[key =' + this_call.data()。process_step + ' ]' 跨度>)点击();
else {
container.find(' 。col1:[ key]:first')。click(); // 错误
}
i得到错误语法错误,无法识别的表达式在下面的链接上
container.find('。col1:[key]:first')。click();
每次按下按钮时按下按钮编号(0,1,2,3),由下面的行给出。
this_call.data()。process_step
.col1:在CSS中定义
。col1 {
box-sizing :内容框;
颜色:白色;
宽度:75px;
身高:75px;
line-height:75px;
text-align:center;
-webkit-border-radius:10px;
background-image:-webkit-radial-gradient(20px 20px,circle cover,rgb( 201 , 201 , 201 ),rgb( 165 , 165 , 165 ));
-webkit-box-shadow:4px 4px 20px 4px rgb( 196 , 196 ,< span class =code-digit> 196 );
border-bottom:5px solid rgb( 172 , 172 , 172 跨度>);
字体大小:16px;
font-weight:bold;
text-shadow:rgba( 0 , 0 , 0 , 0 。 4 )0px -1px 0 跨度>;
}
.col1.selected
{
background-image:-webkit-radial-gradient(20px 20px,circle cover,rgb( 34 , 214 , 0 ),rgb( 19 , 156 , 0 ));
-webkit-box-shadow:4px 4px 20px 4px rgb( 185 , 185 ,< span class =code-digit> 185 );
border-bottom:5px solid rgb( 25 , 172 , 84 跨度>);
}
.col2 {
box-sizing:content-box;
-webkit-box-flex: 1 ;
padding-left:20px;
}
可以告诉我如何在 find中定义动态值 jquery方法
if (this_call!=null && has_value(this_call.data().process_step))
$container.find('.col1:[key="'+this_call.data().process_step+'"]').click();
else{
$container.find('.col1:[key]:first').click();//Error
}
i got error "Syntax error,unrecognized expression" on below link
$container.find('.col1:[key]:first').click();
every time when button clicked at that time button number(0,1,2,3) given by below line.
this_call.data().process_step
".col1:" define in CSS
.col1{
box-sizing: content-box;
color: white;
width: 75px;
height: 75px;
line-height: 75px;
text-align: center;
-webkit-border-radius: 10px;
background-image: -webkit-radial-gradient(20px 20px, circle cover, rgb(201, 201, 201), rgb(165, 165, 165));
-webkit-box-shadow: 4px 4px 20px 4px rgb(196, 196, 196);
border-bottom: 5px solid rgb(172, 172, 172);
font-size: 16px;
font-weight: bold;
text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
}
.col1.selected
{
background-image: -webkit-radial-gradient(20px 20px, circle cover, rgb(34, 214, 0), rgb(19, 156, 0));
-webkit-box-shadow: 4px 4px 20px 4px rgb(185, 185, 185);
border-bottom: 5px solid rgb(25, 172, 84);
}
.col2{
box-sizing: content-box;
-webkit-box-flex:1;
padding-left: 20px;
}
can any tell me how to define dynamic value in find jquery method
container.find('.col1:[key="'+this_call.data().process_step+'"]').click(); else{
container.find('.col1:[key]:first').click();//Error }
i got error "Syntax error,unrecognized expression" on below link
container.find('.col1:[key]:first').click();
every time when button clicked at that time button number(0,1,2,3) given by below line.
this_call.data().process_step
".col1:" define in CSS
.col1{ box-sizing: content-box; color: white; width: 75px; height: 75px; line-height: 75px; text-align: center; -webkit-border-radius: 10px; background-image: -webkit-radial-gradient(20px 20px, circle cover, rgb(201, 201, 201), rgb(165, 165, 165)); -webkit-box-shadow: 4px 4px 20px 4px rgb(196, 196, 196); border-bottom: 5px solid rgb(172, 172, 172); font-size: 16px; font-weight: bold; text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; } .col1.selected { background-image: -webkit-radial-gradient(20px 20px, circle cover, rgb(34, 214, 0), rgb(19, 156, 0)); -webkit-box-shadow: 4px 4px 20px 4px rgb(185, 185, 185); border-bottom: 5px solid rgb(25, 172, 84); } .col2{ box-sizing: content-box; -webkit-box-flex:1; padding-left: 20px; }
can any tell me how to define dynamic value in find jquery method
这篇关于Jquery查找方法格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!