当我们点击搜索时,如何将选定的搜索条件术语加粗 [英] How to make selected search criteria terms bold when we click on it for search

查看:59
本文介绍了当我们点击搜索时,如何将选定的搜索条件术语加粗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..



我在点击链接按钮搜索记录,一切正常。但是有3个搜索条件







过滤器

评论类型

所有

功能

项目

输入

任何人
JohnFirstNameJoICenaLastLastI

Dfd

FichialinBarbos

testftest



输入日期


所有时间

< 30>天

< 90>天

< 180>天

< 365>天

> 365天



现在我可以从每个条件中选择一个值。假设我选择全部,DFD,所有时间并且所有三个都应该是粗体。搜索工作正常但链接按钮没有变得粗体。我使用css使它们在点击时加粗但是当我点击我页面上的其他区域然后linkbutton字体变为normal.SO搜索项目应该是粗体之后点击,直到我更改搜索条件,如....



示例:::我从评论类型中选择全部它应该是粗体,直到我点击功能或项目,因为所有三个属于相同的category.same输入和输入日期。



example2..if我选择所有然后它应该是粗体再次我点击功能然后全部应该是正常的,功能应该是粗体。我选择输入或输入日期标准,然后功能应该是粗体,在输入的日期和按标准输入的值中选择值。



我希望你的问题很清楚。请给我任何ef有效的解决方案

感谢和问候

Rahul

Hello guys..

I am searching records on click on linkbutton and everything is working fine.but there are 3 search criteria



Filter By
Comment Type
All
Feature
Project
Entered By
Anyone
JohnFirstNameJoICenaLastLastLasI
Dfd
FichialinBarbos
testftest

Date Entered

All Time
<30> Days
<90> Days
<180> Days
<365> Days
>365 Days

now i can choose one-one value from each criteria.Suppose i select All,DFD,All Time and all three should be bold.Seaching is working fine but linkbutton are not getting bold.I use css to make them bold on click but as i click on other area on my page then linkbutton font goes normal.SO search item should be bold after click until i change the search criteria like....

example:::I select "ALL" from comment type it should be bold until i click on feature or Project because All three belong to same category.same for entered by and date entered.

example2..if i select all then it should be bold and again i click on "feature" then all should be normal and "feature" should be bold.and i choose entered by or date entered criteria then "feature" should be bold with value select in date entered and entered by criteria.

I hope my question is clear to you.Please provide me any effective solution for it
Thank and Regards
Rahul

推荐答案

为此你需要上课用css font-bold:true。





.boldstyle {

font-bold:true

}





现在......使用jquery点击方法并通过为每个类别添加/删除类来进行操作。



我希望你能理解......
For this u need to to make a class with css font-bold:true.


.boldstyle{
font-bold:true
}


Now... use jquery click method and manipulate by adding/removing class for each category.

I hope u can understand....


这篇关于当我们点击搜索时,如何将选定的搜索条件术语加粗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆